Created
October 10, 2012 02:02
-
-
Save avocado3/3862720 to your computer and use it in GitHub Desktop.
Bookmarklet: open inico
This file contains 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
変数を定義してないから関数の中に収める必要ないね。