68k.news styling

try to take over the world!

Bu betiği kurabilmeniz için Tampermonkey, Greasemonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği yüklemek için Tampermonkey gibi bir uzantı yüklemeniz gerekir.

Bu betiği kurabilmeniz için Tampermonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Userscripts gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği indirebilmeniz için ayrıca Tampermonkey gibi bir eklenti kurmanız gerekmektedir.

Bu komut dosyasını yüklemek için bir kullanıcı komut dosyası yöneticisi uzantısı yüklemeniz gerekecek.

(Zaten bir kullanıcı komut dosyası yöneticim var, kurmama izin verin!)

Bu stili yüklemek için Stylus gibi bir uzantı yüklemeniz gerekir.

Bu stili yüklemek için Stylus gibi bir uzantı kurmanız gerekir.

Bu stili yükleyebilmek için Stylus gibi bir uzantı yüklemeniz gerekir.

Bu stili yüklemek için bir kullanıcı stili yöneticisi uzantısı yüklemeniz gerekir.

Bu stili yüklemek için bir kullanıcı stili yöneticisi uzantısı kurmanız gerekir.

Bu stili yükleyebilmek için bir kullanıcı stili yöneticisi uzantısı yüklemeniz gerekir.

(Zateb bir user-style yöneticim var, yükleyeyim!)

// ==UserScript==
// @name         68k.news styling
// @namespace    http://tampermonkey.net/
// @version      0.02
// @description  try to take over the world!
// @include      http://68k.news/*
// @author       Jony&Thanael
// @match        http://68k.news/*
// @grant        unsafeWindow
// @grant        GM_addStyle
// @grant        GM.xmlHttpRequest
// @run-at       document-start
// ==/UserScript==

(function() {
    //0.01           Initial script
    //0.02           Adjusted title size on home page

    'use strict';
    addCss();

    function addCss(){
        var globalCSS = `body {
  width: 90vw;
  margin: 0 auto;
  margin-top: 3vh;
  color: #383838;
}

h1, h2 {
  font-family: Helvetica;
}

h1 {
  margin-top: 40px;
  text-transform: uppercase;
}

h2 {
  margin-top: 60px;

}

p {
  margin-top: 30px;
}

small{
  font-size: 0.8em !important;
  color: grey;
}

font {
  font-size: 1em;
  line-height: 1em;
}

a, a font{
  font-size: 1em !important;
  color: #000099;
}

@media only screen and (min-width: 768px) {
  body {
    width: 50vw;
  }
  font {
    font-size: 1.4em;
    line-height: 2em;
  }
  font i {
    font-size: 0.8em;
  }
}

`
        function addCssElement(url,rel) {
            var link = document.createElement("link");
            link.href = url;
            link.rel="stylesheet";
            link.type="text/css";
            return link;
        }
        // document.head.appendChild(addCssElement(GM_getResourceURL("bootstrapCSS"))); // add bootstrap
        document.head.appendChild(addCssElement(`data:text/css;base64,${btoa(globalCSS)}`)); // add our own CSS (shown above)
    }
})();