Skip to content

Instantly share code, notes, and snippets.

// ==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();
/*
<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");
// ==UserScript==
// @name Issue 1081
// @namespace gm
// @include *
// ==/UserScript==
var xhr = GM_xmlhttpRequest({
method: "GET",
url: "http://www.github.com"
});