Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Exercise GM bug 1869
// ==UserScript==
// @name Crash GM + FF 27
// @author Rob W <gwnRob@gmail.com>
// @namespace robwu.nl
// @version 3.7.1
// @include *
// @grant GM_getValue
// ==/UserScript==
setTimeout(function() {
if (confirm('Crash?')) clearInterval();
});
var x = setInterval(dump, 1500, 'foo\n');
setTimeout(function() {
dump('Trying to clear interval ...\n');
try {
clearInterval(x);
} catch (e) {
dump('Failed! \n' + e + '\n');
}
}, 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.