Last active
March 2, 2018 18:46
-
-
Save marco79cgn/72988be634769ee9a027bee18d561c05 to your computer and use it in GitHub Desktop.
Spon_Paywall_Disabler
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 Spiegel Online: Adblock Wall entfernen | |
// @namespace https://greasyfork.org/en/users/8981-buzz | |
// @description Entfernt die nervige Anti-Adblock-Meldung von SPON. | |
// @author buzz - modified 0.4 by marco79 | |
// @locale de | |
// @require https://code.jquery.com/jquery-2.2.0.min.js | |
// @version 0.4 | |
// @license GPLv2 | |
// @match http://www.spiegel.de/* | |
// @noframes | |
// ==/UserScript== | |
/* jshint -W097 */ | |
/*global $: false */ | |
'use strict'; | |
$(function() { | |
var h, s; | |
h = document.getElementsByTagName('head')[0]; | |
if (!h) { | |
return; | |
} | |
s = document.createElement('style'); | |
s.type = 'text/css'; | |
s.innerHTML = '.ua-detected { display: none !important; } ' + | |
'#wrapper-content { opacity: 1.0 !important; filter: none !important; pointer-events: auto !important; } ' + | |
'div[class*="sp_message_container"], div[id*="sp_message_id"], div[class*="sp_veil"] { display: none !important } ' + | |
'html, body { overflow-y: auto !important; height: auto !important;'; | |
h.appendChild(s); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment