Skip to content

Instantly share code, notes, and snippets.

@etse
Last active January 13, 2016 12:13
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 etse/4dafac43fdaf14891162 to your computer and use it in GitHub Desktop.
Save etse/4dafac43fdaf14891162 to your computer and use it in GitHub Desktop.
Anti-anti-adblock @ tek.no
// ==UserScript==
// @name Anti anti-adblock TEK
// @author Etse
// @include *gamer.no/*
// @include *tek.no/*
// ==/UserScript==
/* jshint -W097 */
/* NOTE: For at dette skal fungere, legg til følgende filter
i AdBlcok: '*://static.tek.no/js/subscription.js*' */
'use strict';
function clearTimeouts(){
var maxId = setTimeout(function(){}, 0);
for(var i=0; i < maxId; i+=1) {
clearTimeout(i);
}
if(count++ < 60) setTimeout(clearTimeouts, 200);
};
var count=0;
clearTimeouts();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment