Skip to content

Instantly share code, notes, and snippets.

@jazzido
Last active October 16, 2015 12:58
Show Gist options
  • Select an option

  • Save jazzido/2c7ca1a574155db2807d to your computer and use it in GitHub Desktop.

Select an option

Save jazzido/2c7ca1a574155db2807d to your computer and use it in GitHub Desktop.
Para leer lanacion.com sin que te obligue a registrarte
// ==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