VideoLayerRemover

kill layer video ads, maybe you have to unpause manually 2 or 3 times, use carfully!

Dovrai installare un'estensione come Tampermonkey, Greasemonkey o Violentmonkey per installare questo script.

You will need to install an extension such as Tampermonkey to install this script.

Dovrai installare un'estensione come Tampermonkey o Violentmonkey per installare questo script.

Dovrai installare un'estensione come Tampermonkey o Userscripts per installare questo script.

Dovrai installare un'estensione come ad esempio Tampermonkey per installare questo script.

Dovrai installare un gestore di script utente per installare questo script.

(Ho già un gestore di script utente, lasciamelo installare!)

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

(Ho già un gestore di stile utente, lasciamelo installare!)

// ==UserScript==
// @name             VideoLayerRemover
// @version          0.3
// @author           _leBluem_
// @description      kill layer video ads, maybe you have to unpause manually 2 or 3 times, use carfully!
// @namespace        https://greatest.deepsurf.us/de/users/83368-lebluem
// @include http://*/*
// @include https://*/*
// @include-jquery   true
// @grant            none
// ==/UserScript==

//Kill Html5 video layer ads.
//this helps a lot:
//https://addons.mozilla.org/en-US/firefox/addon/no-flash/
//The page is checked every 750ms for elements with a z-index > 200000000.
//Maybe you have to UN-pause manually 2 or 3 times.
//Does not help against inline-video-ads or inline-flash-ads.
//Use carfully, it may break things... 
//did work for
// @match        http://*.golem.de/*
// @match        https://*.golem.de/*
// @match        http://*.pcgames.de/*
// @match        https://*.pcgames.de/*
// @match        http://*.pcgameshardware.de/*
// @match        http://*.sueddeutsche.de/*
// @match        https://*.sueddeutsche.de/*
// @match        http://*.n-tv.de/*
// @match        https://*.n-tv.de/*
// @match        http://*.pcgames.de/*
// @match        https://*.pcgames.de/*

(function() {
	var sleep = 750;
	function runner() {
		$('*').each(function () {
			if ($(this).css('z-index') > 200000000) { this.parentNode.removeChild(this); }
		});
		setTimeout( runner, sleep );
	}
	runner();
})();