Skip to content

Instantly share code, notes, and snippets.

// ==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 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 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_safeHTMLParser Test
// @namespace test
// @include *
// @author Erik Vergobbi Vold <[email protected]>
// @license MIT
// ==/UserScript==
GM_xmlhttpRequest({
@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
@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!');
@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];
@xulapp
xulapp / toggleFindBar.uc.js
Created April 3, 2011 15:45
toggleFindBar.uc.js
// ==UserScript==
// @include main
// @compatibility Firefox 4.0+
// ==/UserScript==
document.getElementById('cmd_find').setAttribute('oncommand', 'gFindBar.hidden ? gFindBar.onFindCommand() : gFindBar.close();');
@erikvold
erikvold / run-this.js
Created June 10, 2011 23:59 — forked from zpao/run-this.js
Simple Window + Tab Stats
// Run this in your error console
var wc=0, tc=0;
var wm = window.top.opener.Services.wm;
var e = wm.getEnumerator("navigator:browser");
var uc = { };
while (e.hasMoreElements()) {
var tabs = e.getNext().gBrowser.tabs;
wc+=1;
tc += tabs.length;
Array.forEach(tabs, function(t) {
@erikvold
erikvold / include.js
Created June 14, 2011 03:20
A include() function for restartless Firefox add-ons
/* Includes a javascript file with loadSubScript
* By Erik Vold <[email protected]> http://erikvold.com/
*
* @param src (String)
* The url of a javascript file to include.
*/
(function(global) global.include = function include(src) {
var o = {};
Components.utils.import("resource://gre/modules/Services.jsm", o);
var uri = o.Services.io.newURI(