diff options
author | teramako | 2010-09-28 13:52:09 +0000 |
---|---|---|
committer | teramako | 2010-09-28 13:52:09 +0000 |
commit | 4bb44270666610efacafe4904fcf4f79c112d981 (patch) | |
tree | aabfd8c5367b3fb4517400a3a57598c964c28acc | |
parent | 2cdd873e182ed60a5cd82af975ffb76b9cd29453 (diff) | |
download | vimperator-plugins-4bb44270666610efacafe4904fcf4f79c112d981.tar.bz2 |
各ツイートのURLをコピー出来るようにメニューを追加
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@38528 d0d07461-0603-4401-acd4-de1884942a52
-rw-r--r-- | twittperator/twlist-win.tw | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/twittperator/twlist-win.tw b/twittperator/twlist-win.tw index 120e551..cb9d0ea 100644 --- a/twittperator/twlist-win.tw +++ b/twittperator/twlist-win.tw @@ -225,6 +225,13 @@ let winXML = <> if (!item) return null; switch (target){ + case "TWEETURL": + return [ + "http://twitter.com", + item.querySelector(".twlist-screenname").textContent, + "statuse", + item.value + ].join("/"); case "ID": return item.value; case "SCREENNAME": @@ -372,6 +379,7 @@ let winXML = <> <menuitem id="twlist-menuitem-openlinktab" label="Open in a new tab" oncommand="gContext.openLink(true)"/> <menu id="twlist-menu-copy" label="Copy" accesskey="C"> <menupopup> + <menuitem id="twlist-menuitem-copy-tweeturl" label="TweetURL" accesskey="W" oncommand="gActions.copy('TWEETURL')"/> <menuitem id="twlist-menuitem-copy-text" label="Text" accesskey="T" oncommand="gActions.copy('TEXT')"/> <menuitem id="twlist-menuitem-copy-id" label="ID" accesskey="I" oncommand="gActions.copy('ID')"/> <menuitem id="twlist-menuitem-copy-name" label="ScreenName" accesskey="S" oncommand="gActions.copy('SCREENNAME')"/> |