-
-
Save anonymous/129512 to your computer and use it in GitHub Desktop.
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({ | |
name: "radio", | |
icon: "http://lh4.ggpht.com/_V1nkdxCYp58/SLsa5owefJI/AAAAAAAAFgM/DqeH6GKFXQI/lastfm.gif", | |
homepage: "www.last.fm", | |
author: {name: "Matthew Garrett", email: "[email protected]"}, | |
license: "GPL", | |
description: "Last.FM radio starter", | |
help: "Type radio, then the artist you want to hear.", | |
takes: {"input": /.*/}, | |
preview: function(pblock, input) { | |
pblock.innerHTML = "Radio for Artist: " + input.text + "</b>."; | |
}, | |
execute: function(input) { | |
displayMessage("Starting " + input.text + " radio. Enjoy!"); | |
Utils.openUrlInBrowser( "http://www.last.fm/listen/artist/" + input.text + "/similarartists"); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment