Skip to content

Instantly share code, notes, and snippets.

@ftherese
ftherese / x
Created January 23, 2009 14:54
makeSearchCommand({
name: "hulu",
synonyms: ["video"],
url: "http://www.hulu.com/videos/search?query={QUERY}",
icon: "http://www.hulu.com/favicon.ico",
description: "Searches <a href=\"http://www.hulu.com\">Hulu</a> for videos matching your words.",
preview: function( pblock, thing ) {
if (thing.text < 1) {pblock.innerHTML = "Search <b>Hulu</b>"; return;}
jQuery.get(this.url.replace("{QUERY}", thing.text),
function (doc)
@ftherese
ftherese / x
Created January 24, 2009 15:48
makeSearchCommand({
name: "hulu",
synonyms: ["video"],
url: "http://www.hulu.com/videos/search?query={QUERY}",
icon: "http://www.hulu.com/favicon.ico",
description: "Searches <a href=\"http://www.hulu.com\">Hulu</a> for videos matching your words.",
preview: function( pblock, thing ) {
if (thing.text < 1) {pblock.innerHTML = "Search <b>Hulu</b>"; return;}
jQuery.get(this.url.replace("{QUERY}", thing.text),
function (doc)
@ftherese
ftherese / x
Created January 28, 2009 23:24
makeSearchCommand({
name: "newadvent",
synonyms: ["catholic","search"],
modifiers: {in: noun_arb_text},
url: "http://www.google.com/search?hl=en&as_q={QUERY}&as_sitesearch=newadvent.org",
icon: "http://www.newadvent.org/images/icon1.ico",
description: "Searches <a href=\"http://www.newadvent.org\">NewAdvent</a> for articles matching your words.",
help: "Try issuing &quot;newadvent gnostics in cathen&quot; to get results from the Catholic Encyclopedia. Works with &quot;cathen,&quot; &quot;fathers,&quot; &quot;bible,&quot; &quot;summa,&quot; and &quot;library.&quot;",
preview: function( pblock, thing, mods ) {
if (thing.text < 1) {pblock.innerHTML = "Search <b>NewAdvent.org</b>";return;}
@ftherese
ftherese / x
Created January 31, 2009 14:42
makeSearchCommand({
name: "etymology",
synonyms: ["root","search","dictionary","origin"],
url: "http://www.etymonline.com/index.php?term={QUERY}",
icon: "http://www.etymonline.com/graphics/header.jpg",
description: "Searches <a href=\"http://www.etymology.org\">The Online Etymology Dictonary</a> for the etymology of your words.",
preview: function( pblock, thing ) {
if (thing.text < 1) {pblock.innerHTML = "Search <b>Etymonline.com</b>";return;}
jQuery.get(this.url.replace("{QUERY}", thing.text),
function (doc)
makeSearchCommand({
name: "philosophy-encyclopedia",
synonyms: ["philosophy","search","encyclopedia"],
url: "http://www.google.com/search?hl=en&as_q={QUERY}&as_sitesearch=iep.utm.edu",
description: "Searches <a href=\"http://www.iep.utm.edu\">The Internet Encyclopedia of Philosophy</a> for articles matching your words.",
preview: function( pblock, thing ) {
if (thing.text < 1) {pblock.innerHTML = "Search <b>The Internet Encyclopedia of Philosophy</b>";return;}
jQuery.get(this.url.replace("{QUERY}", thing.text),
function (doc)
{var tempElement = CmdUtils.getHiddenWindow().document.createElementNS("http://www.w3.org/1999/xhtml", "ol");
<?xml version="1.0" encoding="UTF-8"?>
<Module>
<ModulePrefs title = "Google Book Search" ><Require feature="dynamic-height" /></ModulePrefs>
<Content type="html"><![CDATA[
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
<title>Google Book Search Embedded Viewer API Example</title>
<script src="http://www.google.com/uds/api?file=uds.js&v=1.0"
type="text/javascript"></script>
<script type="text/javascript" src="http://www.google.com/jsapi"></script>
<extension name="Booky" description="Add a Google Book Search to your Wave" thumbnailUrl="http://iphoneoverdose.com/wp-content/uploads/2009/02/google_book_search.jpg">
<author name="Br. Francis Therese" email="wavesdev@gmail.com"/>
<menuHook location="toolbar" text="Add a Google Book Search" iconUrl="http://upload.wikimedia.org/wikipedia/commons/c/c5/MiniBook.png">
<insertGadget url="http://gist.github.com/raw/220863/e0c63c20dbe8e7ee7c4a6ad8a19b4b44ed63fdfb/GoogleBookSearch.xml"/>
</menuHook>
</extension>
<extension name="Booky" description="Add a Google Book Search to your Wave" thumbnailUrl="http://iphoneoverdose.com/wp-content/uploads/2009/02/google_book_search.jpg">
<author name="Br. Francis Therese" email="wavesdev@gmail.com"/>
<menuHook location="toolbar" text="Add a Google Book Search" iconUrl="http://upload.wikimedia.org/wikipedia/commons/c/c5/MiniBook.png">
<insertGadget url="http://gist.github.com/raw/220863/e0c63c20dbe8e7ee7c4a6ad8a19b4b44ed63fdfb/GoogleBookSearch.xml"/>
</menuHook>
</extension>
<extension name="Booky" description="Add a Google Book Search to your Wave" thumbnailUrl="http://iphoneoverdose.com/wp-content/uploads/2009/02/google_book_search.jpg">
<author name="Br. Francis Therese" email="wavesdev@gmail.com"/>
<menuHook location="toolbar" text="Add a Google Book Search" iconUrl="http://upload.wikimedia.org/wikipedia/commons/c/c5/MiniBook.png">
<insertGadget url="http://gist.github.com/raw/220863/e0c63c20dbe8e7ee7c4a6ad8a19b4b44ed63fdfb/GoogleBookSearch.xml"/>
</menuHook>
</extension>
<extension name="Booky" description="Add a Google Book Search to your Wave" thumbnailUrl="http://iphoneoverdose.com/wp-content/uploads/2009/02/google_book_search.jpg">
<author name="Br. Francis Therese" email="wavesdev@gmail.com"/>
<menuHook location="toolbar" text="Add a Google Book Search" iconUrl="http://upload.wikimedia.org/wikipedia/commons/c/c5/MiniBook.png">
<insertGadget url="http://gist.github.com/raw/220863/e0c63c20dbe8e7ee7c4a6ad8a19b4b44ed63fdfb/GoogleBookSearch.xml"/>
</menuHook>
</extension>