Skip to content

Instantly share code, notes, and snippets.

@dansku
Created July 23, 2018 14:48
Show Gist options
  • Save dansku/1a84de49a61f2a39eea334fa8efd9c6c to your computer and use it in GitHub Desktop.
Save dansku/1a84de49a61f2a39eea334fa8efd9c6c to your computer and use it in GitHub Desktop.
Remove Hackernoon annoying sticky bottom/header
// ==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