VideoLayerRemover

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

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

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

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==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://greasyfork.org/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();
})();