Created
January 31, 2017 16:29
-
-
Save Danetag/b2ccefcc322c187515916275f8a5ac14 to your computer and use it in GitHub Desktop.
remove adblock popin on lemonde.fr
This file contains hidden or 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 Free articles on Lemonde.fr | |
| // @namespace http://tampermonkey.net/ | |
| // @version 0.1 | |
| // @description try to take over the world! | |
| // @author Danetag | |
| // @match http://www.lemonde.fr/* | |
| // @grant none | |
| // ==/UserScript== | |
| (function() { | |
| 'use strict'; | |
| var getEl = function() { | |
| var el = document.querySelector('.meter_overlay'); | |
| if ((el === null || el === undefined)) setTimeout(getEl, 300); | |
| else { | |
| el.style.display = "none"; | |
| document.body.classList.add('popin-removed'); | |
| console.log('Adblock removed!'); | |
| } | |
| }; | |
| if (!document.body.classList.contains('popin-removed')) getEl(); | |
| })(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment