Skip to content

Instantly share code, notes, and snippets.

@ArthurHoaro
Created August 3, 2013 11:22
Show Gist options
  • Save ArthurHoaro/6146137 to your computer and use it in GitHub Desktop.
Save ArthurHoaro/6146137 to your computer and use it in GitHub Desktop.
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