Created
July 31, 2019 19:23
-
-
Save keesiemeijer/0b844fc4e43f6fcb0740f34697aff7fa to your computer and use it in GitHub Desktop.
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 Imbd SkipAd | |
// @namespace Imbdskipad | |
// @version 0.1 | |
// @description Remove IMBD header ad | |
// @author keesiemeijer | |
// @match https://www.imdb.com/* | |
// @grant none | |
// ==/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('body#styleguide-v2 { background: none !important; }'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment