This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Issue 1081 | |
// @namespace gm | |
// @include * | |
// ==/UserScript== | |
var xhr = GM_xmlhttpRequest({ | |
method: "GET", | |
url: "http://www.github.com" | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<body> | |
<script type="text/javascript" src="resource://greasemonkey/config.js"></script> | |
<script type="text/javascript"> | |
if (typeof Config !== "undefined") { | |
alert("You have Greasemonkey (branch firefox4-addonstab) installed"); | |
} else if ("gmIGreasemonkeyService" in Components.interfaces) { | |
alert("You have Greasemonkey <= 0.8 installed"); | |
} else { | |
alert("No Greasemonkey detected"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name FF4 window test | |
// @namespace ventero.de | |
// @include http://ventero.de/temp/test_gm_ff4.html | |
// ==/UserScript== | |
if(typeof window.functionInPageScope !== "undefined") | |
window.functionInPageScope(); | |
/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name test: top = 0; | |
// @include * | |
// ==/UserScript== | |
top = 0; | |
alert('a'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Late injection test | |
// @namespace ventero | |
// @include * | |
// @require https://gist.github.com/raw/1159592/883c27709814b7066708e50c51522937ab37678d/require.js | |
// ==/UserScript== | |
if(typeof requiredScript === "undefined") requiredScript = "not present"; | |
alert("Injected!\ndocument.readyState is " + document.readyState + "\n required script is " + requiredScript); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name GM_openInTab test | |
// @namespace ventero.de | |
// @include https://github.com/* | |
// ==/UserScript== | |
alert("typeof GM_openInTab() is " + typeof GM_openInTab("http://www.google.com")); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Timeout additional parameter test | |
// @namespace ventero.de | |
// @include * | |
// @version 1 | |
// ==/UserScript== | |
setTimeout(function(a, b){alert(a.foo + "//" + typeof b)}, 0, {foo:1}, {}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Anonymous function wrap test | |
// @namespace ventero.de | |
// @include * | |
// ==/UserScript== | |
alert("Script running"); | |
return; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name GM_registerMenuCommand Zombie Compartment Test | |
// @namespace ventero.de | |
// @include * | |
// ==/UserScript== | |
GM_registerMenuCommand("foo", function(){alert("click");}); |
OlderNewer