Skip to content

Instantly share code, notes, and snippets.

@erikvold
erikvold / gistGithubAddPaginationToTop4MyGists.user.js
Created March 21, 2010 07:18
This userscript will add the pagination for the gist.github.com My Gists page.
// ==UserScript==
// @name Add Pagination For My Gists To Top
// @namespace gistGithubAddPaginationToTop4MyGists
// @include /^http:\/\/gist\.github\.com\/mine([?#].*)?$/i
// @include http://gist.github.com/mine*
// @match http://gist.github.com/mine*
// @datecreated 2010-03-21
// @lastupdated 2010-03-21
// @version 0.1
// @author Erik Vergobbi Vold
@erikvold
erikvold / jQueryForChromeExample.user.js
Created June 14, 2010 10:06
This userscript is meant to be an example on how to use jQuery in a userscript on Google Chrome.
// ==UserScript==
// @name jQuery For Chrome (A Cross Browser Example)
// @namespace jQueryForChromeExample
// @include *
// @author Erik Vergobbi Vold
// @description This userscript is meant to be an example on how to use jQuery in a userscript on Google Chrome.
// ==/UserScript==
// a function that loads jQuery and calls a callback function when jQuery has finished loading
function addJQuery(callback) {
@erikvold
erikvold / gistUserScriptInstallLink.user.js
Created January 29, 2010 06:04
This userscript will add an 'Install' link to all userscript files (which end with .user.js by necessity).
@erikvold
erikvold / gh-issue-export.js
Created September 15, 2011 04:21
a quick script I wrote to export GH-issues to json files..
var sys = require("sys");
var fs = require('fs');
var GitHubApi = require("./github").GitHubApi;
var githubAPI = new GitHubApi(true);
var issuesAPI = githubAPI.getIssueApi();
username = "repoUsername";
repo = "repoName";
@erikvold
erikvold / gistBespin.user.js
Created July 4, 2010 02:51
Using this user script, you can replace any textarea you encounter on gist.github.com with a Bespin editor – making editing much more pleasant.
// ==UserScript==
// @name Bespin For Gist.Github
// @namespace gistBespin
// @include http://gist.github.com/*
// @include https://gist.github.com/*
// @datecreated 2010-07-03
// @lastupdated 2010-07-03
// @version 0.1
// @author Erik Vergobbi Vold
// @license MPL 1.1/GPL 2.0/LGPL 2.1
@erikvold
erikvold / googleSERPClickTrackingDisabler.user.js
Created January 29, 2010 10:35
This userscript disables Google's click tracking for search results.
// ==UserScript==
// @name Google SERP Click Tracking Disabler
// @namespace googleSERPClickTrackingDisabler
// @include http*://*.google.tld/search?*
// @datecreated 2010-01-29
// @lastupdated 2010-01-29
// @version 0.1
// @author Erik Vergobbi Vold
// @license GPL version 3 or any later version; http://www.gnu.org/copyleft/gpl.html
// @description This userscript disables Google's click tracking for search results.
@erikvold
erikvold / alert-killer-test.user.js
Created March 7, 2011 01:26
Overwrites alert()
// ==UserScript==
// @id alert-killer-test@erikvold.com
// @name Overwrite Alert
// @description Overwrites alert()
// @include *
// @author Erik Vold
// @run-at document-start
// ==/UserScript==
unsafeWindow.alert = function(){};
@erikvold
erikvold / QueryToStruct.cfm
Created January 4, 2011 01:44
A ColdFusion UDF to convert a query to a struct, or an array of structs.
<cffunction name="QueryToStruct" returntype="any" hint="Converts a query to a struct, or an array of structs">
<cfargument name="query" type="query" required="true"/>
<cfargument name="row" type="query"/>
<cfargument name="forceArray" type="boolean" default="false"/>
<cfscript>
var local = StructNew();
var result = StructNew();
var idx = "";
var colName = "";
// ==UserScript==
// @name Delicious Gist Tag
// @namespace deliciousGistTag
// @include http://delicious.com/save?*
// @include https://delicious.com/save?*
// @match http://delicious.com/save?*
// @match https://delicious.com/save?*
// @datecreated 2010-08-05
// @lastupdated 2010-08-05
// @version 0.1.1
@erikvold
erikvold / wsjFullWidthArticles.user.js
Created March 13, 2010 05:36
This userscript will remove the junk from the right side of articles on the Wall Street Journal and make the articles full width.
// ==UserScript==
// @name Wall Street Journal Full Width Articles
// @namespace wsjFullWidthArticles
// @include http://*.wsj.com/article/*
// @include http://wsj.com/article/*
// @include https://*.wsj.com/article/*
// @include https://wsj.com/article/*
// @match http://*.wsj.com/article/*
// @match http://wsj.com/article/*
// @match https://*.wsj.com/article/*