Skip to content

Instantly share code, notes, and snippets.

View ba3r's full-sized avatar

Michael Baer ba3r

View GitHub Profile
/**
* 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> "
@ba3r
ba3r / imdbpreview.js
Created September 3, 2009 04:09 — forked from amau96/imdb-preview
imdbpreview
//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);
}
}
@ba3r
ba3r / x
Created August 3, 2009 21:50 — forked from anonymous/x
last.fm radio starter
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) {