This file contains hidden or 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 Update and Download URL Metadata Test | |
// @version 1 | |
// @updateURL https://gist.github.com/raw/3906612/update-meta-test.meta.js | |
// @downloadURL https://gist.github.com/raw/3906612/update-meta-test.user.js | |
// ==/UserScript== |
This file contains hidden or 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 1620: alert + setTimeout + grant none test | |
// @namespace http://arantius.com/misc/greasemonkey | |
// @include https://github.com/greasemonkey/greasemonkey/issues/1620 | |
// @include https://gist.github.com/3656920 | |
// @version 1 | |
// @grant GM_log | |
// ==/UserScript== | |
alert(1); |
This file contains hidden or 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 User Script Scope Test | |
// @namespace http://arantius.com/misc/greasemonkey | |
// @description Test the affect of assigning to various scopes in a script, on the content page | |
// @include http://jsbin.com/abemus/* | |
// @version 1 | |
// @grant GM_log | |
// ==/UserScript== | |
bare_val = 'grant-ed bare'; |
This file contains hidden or 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 Frame Exclusion Test | |
// @grant none | |
// @include http://jsbin.com/* | |
// @include http://*.greasespot.net/* | |
// ==/UserScript== | |
if (window.top !== window.self) return; | |
console.log('Frame Exclusion Test', location.href); |
This file contains hidden or 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 Greasemonkey and jQuery Test D | |
// @namespace http://arantius.com/misc/greasemonkey | |
// @include http://fiddle.jshell.net/Gc8HN/*/show/ | |
// @include http://fiddle.jshell.net/_display/ | |
// @version 1 | |
// @grant none | |
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js | |
// ==/UserScript== |
This file contains hidden or 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 Var X Equals | |
// @namespace http://github.com/arantius | |
// @include http://localhost/infinite.php* | |
// @version 1 | |
// @unwrap | |
// @grant GM_log | |
// ==/UserScript== | |
// Note @unwrap to trigger this in Greasemonkey versions before 1.0 betas. |
This file contains hidden or 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 Update Test | |
// @namespace test | |
// @description Test whether updates really work | |
// @include * | |
// @version 2 | |
// ==/UserScript== | |
dump('Update test version 2!\n'); |
This file contains hidden or 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
function library() { | |
console.log('The library function defined in a @require script works!'); | |
} |
This file contains hidden or 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
/* | |
The MIT License (MIT) | |
Copyright (c) 2014 Anthony Lieuallen | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is |
This file contains hidden or 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 Break GMail Test | |
// @namespace test | |
// @include https://mail.google.com/* | |
// @include http://mail.google.com/* | |
// @version 1 | |
// ==/UserScript== | |
var els=document.links; | |
for (var i=0, el; j=0, el=els[i]; i++) { |