Skip to content

Instantly share code, notes, and snippets.

@tmyt
Created December 22, 2010 14:44
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 tmyt/751596 to your computer and use it in GitHub Desktop.
Save tmyt/751596 to your computer and use it in GitHub Desktop.
Azurea ScriptExtention Sample - OpenFavstar
/*
コンテキストメニューに選択されたTweetの送信者の
Favstarを開くコマンドを追加する拡張
同じ機能をShift+Fにも割り当てる。
*/
function openFavstar(id)
{
var status = TwitterService.status.get(id);
System.openUrl('http://favstar.fm/users/' + status.user.screen_name + '/recent');
}
System.addContextMenuHandler('Favstarを開く', 0, openFavstar);
System.addKeyBindingHandler('F'.charCodeAt(0), 1, openFavstar);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment