Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
GreaseMonkey: Remove anti-adblock called by setTimeout()
// ==UserScript==
// @name RemoveAntiAdblock
// @namespace raa
// @include http://www.WEBSITE.TLD/*
// @version 1
// ==/UserScript==
// Thanks to http://stackoverflow.com/a/8345837
// Set a fake timeout to get the highest timeout id
var highestTimeoutId = setTimeout(";");
for (var i = 0 ; i < highestTimeoutId ; i++) {
clearTimeout(i);
}
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.