Last active
June 19, 2016 12:50
-
-
Save NicolaiSoeborg/f340125556136b7a1da9b6c0a76a5b46 to your computer and use it in GitHub Desktop.
Fjerner den irriterende "anti-adblocker" på EB.dk
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 Ekstra Bladet Reklame Fjerner | |
// @version 1.2.2 | |
// @author Nicolai Søborg | |
// @namespace https://github.com/NicolaiSoeborg/ | |
// @description Fjerner den irriterende "anti-adblocker" på EB.dk | |
// @match http://ekstrabladet.dk/* | |
// @updateURL https://gist.githubusercontent.com/NicolaiSoeborg/f340125556136b7a1da9b6c0a76a5b46/raw | |
// @downloadURL https://gist.githubusercontent.com/NicolaiSoeborg/f340125556136b7a1da9b6c0a76a5b46/raw | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
var eb = document.querySelector("#eb_fullBody"); | |
if (eb) { | |
for (var elmSib = eb.nextElementSibling; elmSib.nextElementSibling !== null; elmSib = elmSib.nextElementSibling) { | |
// First div after eb_fullBody is the anti-adblocker | |
if (elmSib.tagName == "DIV") { | |
elmSib.remove(); | |
break; | |
} | |
} | |
} | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
How to use