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
/** | |
* 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> " |
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
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) { |