Skip to content

Instantly share code, notes, and snippets.

@m1k1o
Created December 9, 2019 13:15
Show Gist options
  • Save m1k1o/4ee1e1251575de4ea9b3f4c2fdff73eb to your computer and use it in GitHub Desktop.
Save m1k1o/4ee1e1251575de4ea9b3f4c2fdff73eb to your computer and use it in GitHub Desktop.
Block adblock blocker on Süddeutsche zeitung.
// ==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