Created
October 10, 2012 02:02
-
-
Save avocado3/3862720 to your computer and use it in GitHub Desktop.
Bookmarklet: open inico
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
javascript:(location.href=/nicovideo\.jp/.test(location.href)?"inico"+location.href:"inico://"+prompt().match(/^[a-z]{0,2}\d+$/))() |
変数を定義してないから関数の中に収める必要ないね。
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ニコニコ動画のどこかのページを開いているときは、そのままinicoを起動する。それ以外のときは、プロンプトを表示して、入力が動画idっぽければそのidでinicoを開く。