68k.news styling

try to take over the world!

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey, το Greasemonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

You will need to install an extension such as Tampermonkey to install this script.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Userscripts για να εγκαταστήσετε αυτόν τον κώδικα.

You will need to install an extension such as Tampermonkey to install this script.

Θα χρειαστεί να εγκαταστήσετε μια επέκταση διαχείρισης κώδικα χρήστη για να εγκαταστήσετε αυτόν τον κώδικα.

(Έχω ήδη έναν διαχειριστή κώδικα χρήστη, επιτρέψτε μου να τον εγκαταστήσω!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Έχω ήδη έναν διαχειριστή στυλ χρήστη, επιτρέψτε μου να τον εγκαταστήσω!)

// ==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)
    }
})();