Skip to content

Instantly share code, notes, and snippets.

// ==UserScript==
// @name Flickr On Black Button
// @description Adds "Small On Black" and "Large On Black" button to a Flickr photo page
// @namespace http://.org/
// @include http://flickr.com/photos/*
// @include http://www.flickr.com/photos/*
// Based upon the original by Simon Whitaker (simon AT netcetera DOT org) that was based upon the original by Fabricio Zuardi (http://www.mamata.com.br/greasemonkey/)
// By Aki Korhonen (http://akikorhonen.org/)
// Edit by GeekShadow to work on last Flickr update
// ==/UserScript==
@eversonl
eversonl / lifehacker search
Created April 8, 2010 11:34
Google Lifhacker search
@eversonl
eversonl / gist:359976
Created April 8, 2010 10:45
Bing Serches
bingcommand("bing");
bingcommand("python", "docs.python.org", "http://www.python.org/favicon.ico");
bingcommand("django", "docs.djangoproject.com", "http://www.djangoproject.com/favicon.ico");
bingcommand("jquery", "api.jquery.com", "http://www.jquery.com/favicon.ico");
bingcommand("php", "www.php.net", "http://www.php.net/favicon.ico");
bingcommand("javascript", "developer.mozilla.org", "https://developer.mozilla.org/favicon.ico");
bingcommand("w3.org", "www.w3.org");
bingcommand("lifehacker", "lifehacker.com", "http://www.lifehacker.com/favicon.ico");
bingcommand("snownews", "0-21.co.uk", "http://www.0-21.co.uk/favicon.ico");
bingcommand("emacs", "emacswiki.org", "http://emacswiki.org/favicon.ico");
CmdUtils.CreateCommand({
name: "tiny-geocode",
icon: "http://tinygeocoder.com/favicon.ico",
homepage: "http://tinygeocoder.com/",
author: { name: "Mskadu", email: "mskadu@gmail.com"},
license: "GPL",
description: "Turns a location (E.g. London, UK) into a latitude longitude pair (e.g. 51.5001524,-0.1262362)",
help: "tiny-geocode <location><BR/>Eg: tiny-geocode London, UK",
takes: {"location": noun_arb_text},
tinyGeoCode: function( location )
noun_type_feed = new CmdUtils.NounType( "feed",["bbc", "cnn"]);
CmdUtils.CreateCommand({
name: "poo",
takes: {channel: noun_type_feed},
preview: function(pblock, feed)
{
var searchTerm = "poo "+feed.text;
// Don't even display any text before fetching search results,
// since the results come back nearly instantaneously. In the
//Read an article
CmdUtils.CreateCommand({
name: "read an article",
icon: "http://media.ineedtoreadthis.com/images/favicon.ico",
homepage: "http://www.0-21.co.uk/index.php/200902173422/Blog/Lee-s-Blog/My-Ubiquity-commands.html",
author: { name: "Lee Everson", email: "lee@0-21.co.uk"},
license: "GPL",
description: "Takes you to your list of stored articles at ineedtoreadthis.com",
preview: function(pblock) {
pblock.innerHTML = "Takes you to your list of stored articles at ineedtoreadthis.com";
//need to read this
CmdUtils.CreateCommand({
name: "need to read this",
icon: "http://media.ineedtoreadthis.com/images/favicon.ico",
homepage: "http://www.0-21.co.uk/index.php/200902173422/Blog/Lee-s-Blog/My-Ubiquity-commands.html",
author: { name: "Lee Everson", email: "lee@0-21.co.uk"},
license: "GPL",
description: "Adds the current page to your to-read list at ineedtoreadthis.com.",
preview: function(pblock) {
pblock.innerHTML = "Adds the current page to your to-read list at ineedtoreadthis.com";
@eversonl
eversonl / post-to-facebook.js
Created March 4, 2009 14:36
post-to-facebook
//post-to-facebook
CmdUtils.CreateCommand({
name: "post-to-facebook",
icon: "http://www.facebook.com/favicon.ico",
homepage: "http://www.leeeverson.co.uk/20090223/my-ubiquity-commands/",
author: { name: "Lee Everson", email: "lee@0-21.co.uk"},
license: "GPL",
description: "quickly share any web page with your friends, even when you're not on Facebook.",
help: "The Share Bookmarklet will recognise when you share videos and music, making them easy to play within Facebook.",
preview: function(pblock) {
@eversonl
eversonl / lifestream-utterli-feedinc.php
Created February 24, 2009 09:26
lifestream class to add utterli.com feed
class LifeStream_UtterliFeed extends LifeStream_Feed
{
const ID = 'utterli';
const NAME = 'utterli';
const URL = 'http://www.utterli.com/';
const LABEL_SINGLE = 'Submitted an Utter on <a href="%s">%s</a>.';
const LABEL_PLURAL = 'Submitted %d Utterz on <a href="%s">%s</a>.';
const LABEL_SINGLE_USER = '<a href="%s">%s</a> submitted an Utter on <a href="%s">%s</a>.';
const LABEL_PLURAL_USER = '<a href="%s">%s</a> submitted %d Utterz on <a href="%s">%s</a>.';
@eversonl
eversonl / 0-21-search.xhtml
Created February 18, 2009 19:30
dev dont use
<?xml version="1.0" encoding="UTF-8"?>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"
xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<head>
<title>Ubiquity 0-21 Google Search Command</title>
</head>
<body>
<p>This page contains a Ubiquity command for Googling 0-21.co.uk.</p>
<script src="fake-infrastructure.js"></script>
<div id="google-search" style="display: none;">