Created
May 22, 2018 08:56
-
-
Save ro-tex/be51cbe48ff5a431e1f910826853914b to your computer and use it in GitHub Desktop.
Tampermonkey: Strip header/footer from medium.freecodecamp.org
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Strip header/footer from medium.freecodecamp.org | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description stip header/footer | |
// @author Ivaylo Novakov | |
// @match https://medium.freecodecamp.org/* | |
// @grant none | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
let headers = document.getElementsByClassName('metabar'); | |
for(let i=0; i < headers.length; i++) { | |
headers[i].style.visibility = 'hidden'; | |
} | |
let footers = document.getElementsByClassName('js-stickyFooter'); | |
for(let i=0; i < footers.length; i++) { | |
footers[i].style.visibility = 'hidden'; | |
} | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment