Skip to content

Instantly share code, notes, and snippets.

@Infocatcher
Last active March 5, 2016 19:48
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 Infocatcher/1243f295ca93c94160ec to your computer and use it in GitHub Desktop.
Save Infocatcher/1243f295ca93c94160ec to your computer and use it in GitHub Desktop.
Testcase for Greasemonkey: will be executed twice in Greasemonkey 3.7 (https://github.com/greasemonkey/greasemonkey/issues/2371)
// ==UserScript==
// @name about:blank?UserScripts/test
// @namespace dev/null
// @include about:blank?UserScripts/test
// @run-at document-start
// @version 1
// @grant none
// ==/UserScript==
console.log("test: " + document.readyState);
document.body.appendChild(document.createTextNode("+"));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment