Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.