Skip to content

Instantly share code, notes, and snippets.

View ba3r's full-sized avatar

Michael Baer ba3r

View GitHub Profile
@ba3r
ba3r / universalsubs.js
Created December 9, 2010 19:48
subtitle any video using universalsubtitles.org
/* Universal Subtitles v0.72a */
CmdUtils.CreateCommand({
names: ["subtitle"],
description: "Add subtitles to any web video using open standards.",
help: "Open a video or select an URL and type subtitle",
author: {
name: "Michael Baer",
homepage: "http://twitter.com/shaytards",
},
license: "GPL",
/**
* Twitter Timeline (twtuser) v2.2b
*/
+function($j){
const TWT_URL = {
japi: "http://twitter.com/statuses/user_timeline.json",
usr: "http://twitter.com/"
};
const TWT_TMPL = "<h3><a href='" + TWT_URL.usr + "${scn}' target='ws'>"
+ "<img src='${pimg}' width='32' border='0'></a> "
noun_version_name = new CmdUtils.NounType("version", ["nkjv", "kjv", "niv"]);
CmdUtils.CreateCommand(
{
names: ["bible passage"],
icon: "http://www.biblegateway.com/favicon.ico",
homepage: "http://www.biblegateway.com",
author: { name: "Jon Zenor", email: "Jon@ZenorSoft.com" },
contributor: { name: "Michael Baer", homepage: "http://twitter.com/synapsos"},
license: "GPL",
noun_type_btcat = new CmdUtils.NounType( "category",
["Audio", "Music", "Games", "Software", "Applications", "TV", "Series", "Unsorted", "None", "Video", "Movies", "Anime", "Manga", "XXX", "Porn"]
);
CmdUtils.CreateCommand({
names: ["btjunkie"],
icon: "http://btjunkie.org/favicon.ico",
homepage: "http://btjunkie.org",
author: { name: "Michael Baer", homepage: "http://twitter.com/synapsos"},
license: "GPL",
description: "Searches for torrents using BTJunkie",
//codeorgan v0.3
CmdUtils.CreateCommand({
names: ["codeorgan"],
description: "Translates web sites into music",
help: "",
author: {
name: "Michael Baer",
email: "sy.na.ps.os@gmail.com",
homepage: "http://twitter.com/synapsos",
},
var noun_type_twitter_username = {
label: "user",
rankLast: true,
noExternalCalls: true,
cacheTime: 0,
suggest: function nt_twuser_suggest(text, html, cb, selected) {
if (!text || selected)
return [];
var foundAt = text[0] === '@';
if (foundAt) text = text.slice(1);
/* longurl v0.81 */
CmdUtils.CreateCommand({
names: ["expand-short-url", "longurl.org"],
icon: "data:image/x-icon;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAFvSURBVDhPjZPLSsNAFIb/OZNUrLSKl4VbcaEgqOB14wP4DD6C6CuIax/AV/AxdCFeEBeCbyBeUAppoWlME8+ZZtLUJmnJYpJh/nP+/zsT9dMM4qPLJ3x6AeIICKMYYTdKVn4337Lynllj+L9d1Ct1vF5sQr/MHp69NTpQ/AyKpQgXHBBLEaDTmsLi8jXe3SuQdNaqRCxu0iJAu1nF6sYtDvaf8eX5oGHbmc42irHfF+9uP6LTrsGlCqjQ9ggxKQ1NmgukwMbvbMWOIi4QW+oZYEK+wLYVc28odkFhKIfzaQuwlfU72MxZMbF9bRwMzXkQ2N7OvQGWJ9bKEQZJhJxRSWe/UMz2SWUg5mQWsZPQlszWtpbsRBxBGJQA6x3krAXifoF/l6Tcdq+zEQtE+THs9bSZR9m2YsW/AM1NzmBp7caMSjqPZZs7R3x/FqrzUB+eF58/nOK7FaBCbgrKjI0PmlEx7axtxfvTEzWcbB3jD1bNgOd9VMEgAAAAAElFTkSuQmCC",
homepage: "http://longurl.org/tools",
author: {name: "Sean Murphy", homepage: "http://IamSeanMurphy.com"},
contributors: {name: "Michael Baer", homepage: "http://twitter.com/synapsos"},
license: "GPL",
help: "Select a shortened URL and type longurl to display
CmdUtils.CreateCommand({
names: ["input"],
icon: "http://desktop.google.com/favicon.ico",
description: "Visual Search",
author: {name: "Michael Baer", homepage: "http://twitter.com/synapsos"},
license: "GPL",
homepage: "http://images.google.com/",
arguments: {object_query: noun_arb_text},
preview: function (html, q) {
var params = {q: q.object.text,
/* AddToAny v0.5
Original source script can be found here: http://code.google.com/p/zainulfranciscusubiquity/source/browse/trunk/%20zainulfranciscusubiquity/Ubiquity/addToAny.js */
var noun_type_service = new CmdUtils.NounType( "service",
["facebook", "twitter", "digg", "reddit", "subscribe", "email", "google_gmail", "google_buzz", "google bookmarks", "evernote", "posterous", "tumblr", "netvibes_share", "yahoo_bookmarks", "delicious", "mister_wong", "friendfeed", "google_reader", "wordpress", "blogger_post", "livejournal"]
);
CmdUtils.CreateCommand({
names: ["addToAny"],
homepage: "http://addtoany.com",
@ba3r
ba3r / dynastree.js
Created October 27, 2009 06:09
dynastree in: de, at, ch, us, uk, ca, fr, es, nl, pl
const
N = 'Michael Baer';
H = 'https://gist.github.com/synapsos';
L = 'GPL';
I = 'http://www.dynastree.com/favicon.ico';
S = '/search/query/';
DE = 'http://verwandt.de';
AT = 'http://verwandt.at';
CH = 'http://verwandt.ch';
US = 'http://dynastree.com';