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
# This is a ruleset configuration for Karma Blocker. For more information, see: | |
# http://trac.arantius.com/wiki/Extensions/KarmaBlocker | |
# This default ruleset is intended to be demonstrative: making productive | |
# use of all the features that the Karma Blocker rule syntax provides. It | |
# should generally work, but it has intentionally not been tweaked to deal | |
# with the particulars of any given site. All rules here are intended to | |
# explain what can be done, and how it can be done, while remaining as | |
# generic as possible, with limited exceptions. You the user are expected | |
# to tweak and customize these rules. |
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
application: angular-resource-save-test | |
version: 1 | |
runtime: python | |
api_version: 1 | |
handlers: | |
- url: / | |
static_files: index.html | |
upload: index.html |
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_xmlhttpRequest Basic Test | |
// ==/UserScript== | |
dump('starting gm_xhr ...'); | |
try { | |
GM_xmlhttpRequest({ | |
method: "GET", |
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 Simple Test | |
// ==/UserScript== | |
GM_registerMenuCommand( | |
"Simple menu command", | |
function() { dump("Simple menu command runs.\n"); }); |
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 Access Key Test | |
// ==/UserScript== | |
GM_registerMenuCommand( | |
"Menu command, with Access Key", | |
function() { dump("Menu command w/Access Key runs.\n"); }, | |
null, null, | |
"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 GM_registerMenuCommand Accelerator Test | |
// ==/UserScript== | |
GM_registerMenuCommand( | |
"Menu command, with Accelerator", | |
function() { dump("Menu command w/Accelerator runs.\n"); }, | |
"c", "control shift"); |
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() accelerator tester | |
// @namespace http://arantius.com/misc/greasemonkey/ | |
// @description A flexible test script for examining if/how GM_rmc's accelerator keys work | |
// @include about:blank#GM_rmc | |
// @resource ui.html https://gist.github.com/raw/898642/ui.html | |
// ==/UserScript== | |
var windowId = String(Math.random()).substr(2); |
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() Randomized Test | |
// @include http* | |
// ==/UserScript== | |
var id = String(Math.random()).substr(3); | |
GM_registerMenuCommand( | |
"Menu command "+id, | |
function() { unsafeWindow.dump("Menu command "+id+" runs.\n"); }); |
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_xmlhttpRequest Alert Interference Test | |
// @include http* | |
// ==/UserScript== | |
// Uses unsafeWindow.dump() because of | |
// https://github.com/greasemonkey/greasemonkey/issues#issue/1229 | |
function doSampleXhr() { | |
unsafeWindow.dump('starting gm_xhr ...'); |
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 alert() + setTimeout() tester | |
// @include http* | |
// ==/UserScript== | |
alert('alert 1'); | |
setTimeout(function() { alert('alert 2'); }, 0); |