Skip to content

Instantly share code, notes, and snippets.

@NicolaiSoeborg
Last active June 19, 2016 12:50
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 NicolaiSoeborg/f340125556136b7a1da9b6c0a76a5b46 to your computer and use it in GitHub Desktop.
Save NicolaiSoeborg/f340125556136b7a1da9b6c0a76a5b46 to your computer and use it in GitHub Desktop.
Fjerner den irriterende "anti-adblocker" på EB.dk
// ==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;
}
}
}
})();
@NicolaiSoeborg
Copy link
Author

NicolaiSoeborg commented Jun 17, 2016

How to use

  1. Install Tampermonkey: https://tampermonkey.net/
  2. Click the "Raw" button above
  3. Click "Install"
  4. Enjoy shitty journalism without a ton of ads

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment