Skip to content

Instantly share code, notes, and snippets.

@mat
Created September 9, 2008 21:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mat/9767 to your computer and use it in GitHub Desktop.
Save mat/9767 to your computer and use it in GitHub Desktop.
Ubiquity command for http://trakkor.better-idea.org
CmdUtils.CreateCommand({
name: "trakkor",
description: "Notifies you when a web page changes via Trakkor.",
help: "Select text on the current page to be tracked.",
homepage: "http://trakkor.better-idea.org",
author: {name: "Matthias Luedtke", email: "github@matthias-luedtke.de"},
takes: {"text to track": noun_arb_text},
icon: "http://trakkor.better-idea.org/images/favicon.ico",
execute: function(textToTrack) {
var doc = Application.activeWindow.activeTab.document;
var uri = encodeURIComponent(doc.location.href);
var q = encodeURIComponent(textToTrack.text);
Utils.openUrlInBrowser('http://trakkor.better-idea.org/find?uri='+uri+'&q='+q);
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment