Created
November 1, 2016 04:42
-
-
Save mtdtks/de76388fb105d4d80a94197d6d5e8e90 to your computer and use it in GitHub Desktop.
同時検索するブックマークレット
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:(function(){ | |
var url = [ | |
"http://www.amazon.co.jp/gp/search/?field-keywords=%s", | |
"https://www.google.co.jp/search?site=&source=hp&q=%s" | |
]; | |
var key = prompt("キーワードを入力"); | |
for(var i = 0;i <= url.length;i ){ | |
var target = url[i].replace("%s",key); | |
window.open(target,"_blank"); | |
}; | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment