www.focus.de

Posting here is no longer possible, please use the forum of a filter list project, such as EasyList
Arno Crypto Nymous
Posts: 5
Joined: Fri Apr 10, 2015 9:02 am

Re: www.focus.de

Post by Arno Crypto Nymous »

Guys, as far as i food out … tvtoday does the same but there we can block them for now pretty easy.

Code: Select all

||images.tvtoday.de/_js/main.js.*.php
www.tvtoday.de##IMG[src*="==.jpg"]
At least the banner pictures are disappeared but the combiners will still be placed … empty but placed.
I think … they will not have any costive result put of it because as more people are annoyed by these banners as more will no more visit them … hopefully.
MonztA
ABP Developer
Posts: 3957
Joined: Mon Aug 14, 2006 12:18 am
Location: Germany

Re: www.focus.de

Post by MonztA »

Arno Crypto Nymous wrote:Well i think for now we should block the entire sites in all subscribed Filters.
The only way to show them "YOU CANNOT DO WHAT YOU WANT WITH US" should give them an idea what it means to trick Adblockers.
Yeah, great idea. :roll:
micmue
Posts: 1
Joined: Sun Nov 15, 2015 1:27 pm

Re: www.focus.de

Post by micmue »

You can use the browser add-on Greasemonkey to remove the dynamically created ads.

1. Install Greasemonkey
2. Create 2 custom scripts for http://www.focus.de/*
3. save the scripts with the following content

Code: Select all

// ==UserScript==
// @name        focus.de
// @namespace   focus.de
// @include     http://www.focus.de/*
// @version     1
// @grant       none
// @run-at      document-end
// ==/UserScript==

function removeAdFromParentElement(parentDivId) {
	try {
		var divWrapper = document.getElementById(parentDivId);
		if (divWrapper != null) {
			divWrapper.addEventListener("DOMNodeInserted", function (event) {
				if (event.target.nodeName == "DIV") {
					if (event.target.id != "") {				
						var regex = /^[a-zA-Z]+$/;
						if (regex.exec(event.target.id)) {
							event.target.parentElement.removeChild(event.target);
						}
					} else if (event.target.className != "") {
						var regexClass = /^[a-zA-Z]+ $/;
						if (regexClass.exec(event.target.className)) {
							event.target.parentElement.removeChild(event.target);
						}					
					}
				}
			}, false);
		}
	} catch(err) {
		
	}
}

function removeAdElement(elementId) {
	try {
		var el = document.getElementById(elementId);
		if (el != null) {
			el.remove();
		}
	} catch(err) {
		
	}
}

removeAdFromParentElement("page-container");
removeAdElement("plista_widget_innerArticle");

Code: Select all

// ==UserScript==
// @name        www.focus.de
// @namespace   www.focus.de
// @include     http://www.focus.de/*
// @version     1
// @grant       none
// @run-at      document-start
// ==/UserScript==

unsafeWindow.amznads = {};

Locked