Skip to content

Instantly share code, notes, and snippets.

@gosukiwi
Created August 14, 2017 03:11
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 gosukiwi/b185c3bd4978418985e69fd8fd750501 to your computer and use it in GitHub Desktop.
Save gosukiwi/b185c3bd4978418985e69fd8fd750501 to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name No me jodas Clarin
// @namespace gosukiwi.greasemonkey.nmjc
// @description Borra el overlay de mierda que pone Clarin para que te registres
// @include https://www.clarin.com/*
// @include https://clarin.com/*
// @version 0.0.1
// @grant none
// ==/UserScript==
var MAX_TRIES = 15;
var tries = 0;
function checkForOverlay() {
var $wrap = $('.mfp-wrap');
setTimeout(function () {
if ($wrap.length > 0) {
$wrap.hide();
$('.mfp-bg').trigger('click');
} else if (tries < MAX_TRIES) {
tries = tries + 1;
checkForOverlay();
}
}, 500);
}
checkForOverlay();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment