Last active
October 16, 2015 12:58
-
-
Save jazzido/2c7ca1a574155db2807d to your computer and use it in GitHub Desktop.
Para leer lanacion.com sin que te obligue a registrarte
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 Anti-popup para lanacion.com | |
| // @namespace antipopup | |
| // @description Evita el popup que te "obliga" a registrarte para leer el diario | |
| // @include http://www.lanacion.com.ar/* | |
| // @version 1 | |
| // @grant none | |
| // ==/UserScript== | |
| var target = document.querySelector('body'); | |
| var observer = new MutationObserver(function(mutations) { | |
| mutations.forEach(function(mutation) { | |
| document.querySelector('div.lnmodal').remove(); | |
| }); | |
| }); | |
| var config = { attributes: true, childList: true, characterData: false }; | |
| observer.observe(target, config); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment