Skip to content

Instantly share code, notes, and snippets.

@snapcase
Created November 24, 2016 19:06
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 snapcase/8cc939302a1cc4b4ebacf46a29771d96 to your computer and use it in GitHub Desktop.
Save snapcase/8cc939302a1cc4b4ebacf46a29771d96 to your computer and use it in GitHub Desktop.
politiken.user.js
// ==UserScript==
// @name get rekt
// @namespace animetiddi.es
// @description wat
// @include http://politiken.dk/*
// @version 1
// @run-at document-end
// @grant none
// ==/UserScript==
var fug = setInterval(function() {
if ($('.modal--adblockblocker').length) {
var elm = $('.modal--adblockblocker').parents().get()[1];
$(elm).hide();
$('body').removeClass('dit-modal-open');
console.log('removed shit');
clearInterval(fug);
}
}, 100);
setTimeout(function() { clearInterval(fug); }, 5000);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment