Skip to content

Instantly share code, notes, and snippets.

View choffee's full-sized avatar

John Cooper choffee

View GitHub Profile
@choffee
choffee / x
Created February 16, 2009 16:21
Search York directory
//Note: This command was automatically generated by the create-new-search-command command.
CmdUtils.CreateCommand({
name: "yorkbyusername",
url: "https://www.york.ac.uk/directory/user/searchaction.cfm",
icon: "http://www.york.ac.uk/favicon.ico",
description: "Searches www.york.ac.uk for a username",
takes: {"search term": noun_arb_text},
execute: function(input){ var query = encodeURIComponent(input.text);
@choffee
choffee / x
Created February 16, 2009 16:28
Search York website
CmdUtils.makeSearchCommand({
name: "YorkWeb",
url: "http://search.york.ac.uk/search?q={QUERY}&site=yorkweb&client=yorkweb&output=xml_no_dtd&proxystylesheet=yorkweb",
icon: "http://www.york.ac.uk/favicon.ico",
description: "Searches www.york.ac.uk"
});
@choffee
choffee / x
Created February 23, 2009 14:55
Search York Directory by Surname
//Note: This command was automatically generated by the create-new-search-command command.
CmdUtils.CreateCommand({
name: "yorksurnamesearch",
url: "https://www.york.ac.uk/directory/user.yrk/searchaction.cfm",
icon: "http://www.york.ac.uk/favicon.ico",
description: "Searches www.york.ac.uk",
@choffee
choffee / x
Created February 26, 2009 12:03
Search Debian Bugs by bug number
//Note: This command was automatically generated by the create-new-search-command command.
CmdUtils.makeSearchCommand({
name: "debian-bug-by-number",
url: "http://bugs.debian.org/cgi-bin/bugreport.cgi?bug={QUERY}",
icon: "http://www.debian.org/favicon.ico",
description: "Searches Debian bugs buy number"
});
@choffee
choffee / x
Created February 26, 2009 12:07
Free text search of debian bugs.
//Note: This command was automatically generated by the create-new-search-command command.
CmdUtils.makeSearchCommand({
name: "debian-bug-search",
url: "http://merkel.debian.org/~don/cgi/search.cgi?phrase={QUERY}&skip=0",
icon: "http://merkel.debian.org/favicon.ico",
description: "Searches debian bugs for a phrase"
});
@choffee
choffee / x
Created February 26, 2009 12:42
Take you to an Ubuntu bug number
// Shoould really check for a valid number
// Would be nice to do a preview first
CmdUtils.makeSearchCommand({
name: "Ubuntu-bug-number",
url: "https://bugs.launchpad.net/bugs/{QUERY}",
icon: "http://launchpad.net/favicon.ico",
description: "Takes you to a bug number"
});
@choffee
choffee / x
Created February 26, 2009 12:43
//Note: This command was automatically generated by the create-new-search-command command.
CmdUtils.makeSearchCommand({
name: "ubuntu-bug-search",
url: "https://bugs.launchpad.net/+bugs?field.searchtext={QUERY}&field.status%3Alist=NEW&field.status%3Alist=INCOMPLETE_WITH_RESPONSE&field.status%3Alist=INCOMPLETE_WITHOUT_RESPONSE&field.status%3Alist=CONFIRMED&field.status%3Alist=TRIAGED&field.status%3Alist=INPROGRESS&field.status%3Alist=FIXCOMMITTED&field.assignee=&field.bug_reporter=&field.omit_dupes=on&field.has_patch=&field.has_no_package=",
icon: "http://bugs.launchpad.net/favicon.ico",
description: "Searches bugs.launchpad.net"
});
//Note: This command was automatically generated by the create-new-search-command command.
CmdUtils.makeSearchCommand({
name: "oed-search",
url: "http://dictionary.oed.com/cgi/findword?query_type=word&queryword={QUERY}",
icon: "http://dictionary.oed.com/favicon.ico",
description: "Searches dictionary.oed.com"
});
@choffee
choffee / calendar_date.user.js
Created June 15, 2009 12:05
Script to highlight day of month for sun calendar
// ==UserScript==
// @name Calender date
// @namespace http://choffee.co.uk/code/
// @include https://calendar.york.ac.uk/command.shtml?view=monthview:main*
// ==/UserScript==
//
// This is neither pretty or clever but it does fix a really annoying bit in sun calendar
// for me. It highlights the current day.
// Note: It should also check that you are looking at the correct month!
//
@choffee
choffee / footprints_noQuickEdit.user.js
Created February 22, 2012 13:39
Footprints replace quickEdit with the more useful Details
// ==UserScript==
// @name Footprints details
// @namespace http://userscripts.org/users/58394
// @description Changes the details from
// @include https://footprints.york.ac.uk/*
// ==/UserScript==
//
//
window.addEventListener("load", function(e) {