Created
July 23, 2018 14:48
-
-
Save dansku/1a84de49a61f2a39eea334fa8efd9c6c to your computer and use it in GitHub Desktop.
Remove Hackernoon annoying sticky bottom/header
This file contains 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 Hackernoon Update | |
// @namespace https://www.danielandrade.net | |
// @version 0.1 | |
// @description Remove Hackernoon annoying sticky bottom/header | |
// @author Daniel Spillere Andrade | |
// @match https://hackernoon.com/* | |
// ==/UserScript== | |
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('.u-bottom0 { display: none !important; }'); | |
addGlobalStyle('.metabar { display: none !important; }'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment