Skip to content

Instantly share code, notes, and snippets.

@marco79cgn
Last active March 2, 2018 18:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marco79cgn/72988be634769ee9a027bee18d561c05 to your computer and use it in GitHub Desktop.
Save marco79cgn/72988be634769ee9a027bee18d561c05 to your computer and use it in GitHub Desktop.
Spon_Paywall_Disabler
// ==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