Skip to content

Instantly share code, notes, and snippets.

@supahgreg
supahgreg / [email protected]
Created March 12, 2011 18:24
testing GM_(register|unregister|enable|disable)MenuCommand
// ==UserScript==
// @id [email protected]
// @name Scriptish menu command test!
// @author Greg Parris
// @namespace http://phob.net
// @description testing GM_(register|unregister|enable|disable)MenuCommand
// @include http://phob.net/
// ==/UserScript==
var body = document.getElementsByTagName("body")[0];
@erikvold
erikvold / headerTest.user.js
Created March 2, 2011 05:58
header test case
//==UserScript==
//@name testName
//@namespace anonDeveloper
//@description This script will automagically blah blah blah
//@include *
//@exclude erik
//==/UserScript==
alert('Hello world!');
@lonnen
lonnen / autoconf213.rb
Created January 4, 2011 22:15
Homebrew recipe for autoconf213
require 'formula'
class Autoconf213 <Formula
url 'http://ftp.gnu.org/pub/gnu/autoconf/autoconf-2.13.tar.gz'
md5 '9de56d4a161a723228220b0f425dc711'
homepage 'http://www.gnu.org/software/autoconf/'
def keg_only?
:provided_by_osx
end
// ==UserScript==
// @id [email protected]
// @name GM_safeHTMLParser Test
// @namespace test
// @include *
// @author Erik Vergobbi Vold <[email protected]>
// @license MIT
// ==/UserScript==
GM_xmlhttpRequest({
// ==UserScript==
// @name Document Start Test
// @namespace vidzbigger.com
// @description This scrip tests document-start
// @include http://*
// @run-at document-start
// ==/UserScript==
GM_addStyle('body{display:none;}');
// ==UserScript==
// @id [email protected]
// @name GM_notification test IV
// @namespace test
// @include *
// @resource cat http://www.dwmtech.com/images/cat23.gif
// ==/UserScript==
GM_notification("test", "test", GM_getResourceURL("cat"));
// ==UserScript==
// @name @icon test 5
// @namespace iconTest
// @icon data:text/html;charset=utf-8,<!DOCTYPE HTML PUBLIC "-%2F%2FW3C%2F%2FDTD HTML 4.0%2F%2FEN">%0D%0A<html lang%3D"en">%0D%0A <head>%0D%0A <title>Test<%2Ftitle>%0D%0A <style type%3D"text%2Fcss">%0D%0A <%2Fstyle>%0D%0A <%2Fhead>%0D%0A <body>%0D%0A <p><%2Fp>%0D%0A <%2Fbody>%0D%0A<%2Fhtml>%0D%0A
// @include *
// @version 0.1
// @author Erik Vergobbi Vold
// @license GPL version 3 or any later version; http://www.gnu.org/copyleft/gpl.html
// ==/UserScript==
// ==UserScript==
// @id [email protected]
// @name Resource Test
// @namespace test
// @include *
// @resource text http://erikvold.com/robots.txt
// @resource ico http://erikvold.com/favicon.ico
// ==/UserScript==
alert(GM_getResourceText("text"));
onmessage = function(event) {
postMessage(event.data);
onCancel(); // causes "onCancel is not defined" error
}
// ==UserScript==
// @name GM_woker test 3
// @namespace gWorkerTest
// @include *
// @author Erik Vergobbi Vold
// @license GPL version 3 or any later version; http://www.gnu.org/copyleft/gpl.html
// @resource worker http://erikvold.com/tests/greasemonkey/gmWorker/worker-xhr.js
// @noframes
// ==/UserScript==