This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CmdUtils.CreateCommand({ | |
names: ["radio", "last.fm radio"], | |
icon: "http://cdn.last.fm/flatness/nice_favicon.png", | |
homepage: "www.last.fm", | |
author: {name: "Michael Baer", homepage: "http://twitter.com/synapsos"}, | |
license: "GPL", | |
description: "Last.FM radio starter - works with 0.5+ (Parser 2)", | |
help: "Type radio followed by the artist you want to listen to.", | |
arguments: [{role: 'object', nountype: noun_arb_text, label: "artist name"}], | |
preview: function(pblock, args) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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>Songza Search</title> | |
</head> | |
<body> | |
<div id="ubiquity-preview" style="display: none;"> | |
<style> | |
.gresult img { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//version 1.41b - Search for a route with Google Maps (supports many languages) | |
var from_prepos; | |
var to_prepos; | |
var geo = CmdUtils.getGeoLocation().country; | |
//German | |
if ( geo == 'Germany' || geo == 'Austria' || geo == 'Switzerland' ) | |
{from_prepos = "von"; to_prepos = "nach";} else { | |
//Japanese | |
if ( geo == 'Japan' ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//function to transform link | |
function processNode() { | |
var href = jQuery(this).attr("href"); | |
if(/[a-z]\:\/\//.exec(href) === null) { | |
if(href[0] == "/") | |
jQuery(this).attr("href", "http://www.imdb.com" + href); | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//function to transform link | |
function processNode() { | |
var href = jQuery(this).attr("href"); | |
if(/[a-z]\:\/\//.exec(href) === null) { | |
if(href[0] == "/") | |
jQuery(this).attr("href", "http://thepiratebay.org" + href); | |
} | |
} | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* v0.3 OpenClosed.de */ | |
CmdUtils.CreateCommand({ | |
names: ["openclosed", "oc"], | |
icon: "http://synapsos.kilu.de/ubiquity/openclosed/favicon.ico", | |
description: "Suche für Öffnungszeiten in Deutschland.", | |
help: "z.B. open kaufland berlin oder oc freiberg aldi 09599.", | |
author: {name: "Michael Baer", homepage: "http://twitter.com/synapsos"}, | |
license: "GPL", | |
homepage: "http://www.openclosed.de/", | |
arguments: [{role: 'object', nountype: noun_arb_text, label: "Filiale"}], |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Davos Vote */ | |
CmdUtils.CreateCommand({ | |
names: ["davos"], | |
icon: "chrome://ubiquity/skin/icons/youtube.ico", | |
description: "Vote", | |
help: "Just vote.", | |
author: {name: "Michael", homepage: "http://twitter.com/synapsos"}, | |
license: "GPL", | |
homepage: "http://youtube.com/davos", | |
preview: function preview(pblock) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//version 1.56b - Search for a route with Google Maps (supports many languages) | |
var from_prepos; | |
var to_prepos; | |
var geo = CmdUtils.getGeoLocation().country; | |
//German | |
if ( geo == 'Germany' || geo == 'Austria' || geo == 'Switzerland' ) | |
{from_prepos = "von"; to_prepos = "nach";} else { | |
//Japanese | |
if ( geo == 'Japan' ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const | |
R = 'http://routerank.com/'; | |
I = 'http://lh5.ggpht.com/_9QZJW2qJEGU/SwNLnkFvRAI/AAAAAAAAAqM/1tB2zfjefYQ/routerank.png'; | |
N = 'Michael Baer'; | |
T = 'https://gist.github.com/synapsos'; | |
L = 'GPL'; | |
S1 = '<span style=\'text-transform:capitalize\'>'; | |
S2 = '</span>'; | |
//v1.65 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* This is a template command. */ | |
CmdUtils.CreateCommand({ | |
names: ["what"], | |
icon: "http://www.mozilla.com/favicon.ico", | |
description: "A short description of your command.", | |
help: "How to use your command.", | |
author: {name: "Your Name", email: "[email protected]"}, | |
license: "GPL", | |
homepage: "http://labs.mozilla.com/", | |
arguments: [{role: 'object', nountype: noun_arb_text}], |
OlderNewer