Skip to content

Instantly share code, notes, and snippets.

@Danetag
Created January 31, 2017 16:29
Show Gist options
  • Select an option

  • Save Danetag/b2ccefcc322c187515916275f8a5ac14 to your computer and use it in GitHub Desktop.

Select an option

Save Danetag/b2ccefcc322c187515916275f8a5ac14 to your computer and use it in GitHub Desktop.
remove adblock popin on lemonde.fr
// ==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