Desuckify Medium!

Make Medium easier to read (on smaller screens only maybe)

K instalaci tototo skriptu si budete muset nainstalovat rozšíření jako Tampermonkey, Greasemonkey nebo Violentmonkey.

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

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Userscripts.

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

K instalaci tohoto skriptu si budete muset nainstalovat manažer uživatelských skriptů.

(Už mám manažer uživatelských skriptů, nechte mě ho nainstalovat!)

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.

(Už mám manažer uživatelských stylů, nechte mě ho nainstalovat!)

// ==UserScript==
// @name         Desuckify Medium!
// @namespace    https://example.com
// @version      0.2
// @description  Make Medium easier to read (on smaller screens only maybe)
// @author       KS
// @match        *://medium.com/*
// @icon         https://www.google.com/s2/favicons?domain=www.medium.com
// @grant        none
// @run-at       document-end
// ==/UserScript==

// Function courtesy of PaarCrafter on StackOverflow
// https://stackoverflow.com/a/46285637
function addGlobalStyle(css) {
    var head, style;
    head = document.getElementsByTagName('head')[0];
    if (!head) { return; }
    style = document.createElement('style');
    style.type = 'text/css';
    style.innerHTML = css;
    head.appendChild(style);
}

addGlobalStyle(".js-stickyFooter { display: none !important; }");
addGlobalStyle(".metabar { display: none !important; }");
addGlobalStyle(".js-postShareWidget { display: none !important; }");