Medium_Improved

Fix annoying UI behaviors on medium.com

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

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

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

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

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

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

(I already have a user script manager, let me install it!)

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.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name         Medium_Improved
// @name:en      Medium_Improved
// @version      0.1
// @description  Fix annoying UI behaviors on medium.com
// @namespace    https://www.greasyfork.org/en/scripts/373794-medium-improved
// @author       https://github.com/kimpeek
// @include      *medium.com/*
// ==/UserScript==

// remove modal
const modal = document.getElementsByClassName('overlay--lighter')[0];
modal.style.display = 'none';

// re-enable scroll
const hidden = document.getElementsByClassName('u-overflowHidden');
for (let element in hidden) {
    try {
        hidden[element].classList.remove("u-overflowHidden");
    } catch (e) {

    }
}

// hide fixed elements
const fixed = document.getElementsByClassName('u-fixed');
for (let element in fixed) {
    try {
        fixed[element].style.display = 'none';
    } catch (e) {

    }
}