Created
December 9, 2019 13:15
-
-
Save m1k1o/4ee1e1251575de4ea9b3f4c2fdff73eb to your computer and use it in GitHub Desktop.
Block adblock blocker on Süddeutsche zeitung.
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 Süddeutsche zeitung - Anti^2:Adblock. | |
// @namespace https://www.sueddeutsche.de/ | |
// @version 1.0 | |
// @description Block adblock blocker on Süddeutsche zeitung. | |
// @author kronos | |
// @match https://www.sueddeutsche.de/* | |
// @grant none | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
var css = '[data-class~=lock-layer] {display:none!important;}'+ | |
'body {overflow-y:scroll!important;height:100%!important;}', | |
head = document.head || document.getElementsByTagName('head')[0], | |
style = document.createElement('style'); | |
head.appendChild(style); | |
style.type = 'text/css'; | |
if (style.styleSheet){ | |
// This is required for IE8 and below. | |
style.styleSheet.cssText = css; | |
} else { | |
style.appendChild(document.createTextNode(css)); | |
} | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment