Skip to content

Instantly share code, notes, and snippets.

@arantius
Last active August 29, 2015 14:26
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 arantius/55449c978ceae58f9e9c to your computer and use it in GitHub Desktop.
Save arantius/55449c978ceae58f9e9c to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name GM_rmc Test 1
// @namespace https://github.com/arantius
// @include http*
// @version 1
// @grant GM_registerMenuCommand
// @run-at document-start
// ==/UserScript==
dump('GM_rmc Test 1\n');
GM_registerMenuCommand(
'GM_rmc Test, http, -start', function(){ alert('OK!'); }
);
// ==UserScript==
// @name GM_rmc Test 2
// @namespace https://github.com/arantius
// @include http*
// @version 1
// @grant GM_registerMenuCommand
// @run-at document-end
// ==/UserScript==
dump('GM_rmc Test 2\n');
GM_registerMenuCommand(
'GM_rmc Test, http, -end', function(){ alert('OK!'); }
);
// ==UserScript==
// @name GM_rmc Test 3
// @namespace https://github.com/arantius
// @include about:blank
// @version 1
// @grant GM_registerMenuCommand
// @run-at document-start
// ==/UserScript==
dump('GM_rmc Test 3\n');
GM_registerMenuCommand(
'GM_rmc Test, about:blank, -start', function(){ alert('OK!'); }
);
// ==UserScript==
// @name GM_rmc Test 4
// @namespace https://github.com/arantius
// @include about:blank
// @version 1
// @grant GM_registerMenuCommand
// @run-at document-end
// ==/UserScript==
dump('GM_rmc Test 4\n');
GM_registerMenuCommand(
'GM_rmc Test, about:blank, -end', function(){ alert('OK!'); }
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment