Last active
December 27, 2015 23:19
-
-
Save justinmakaila/7405493 to your computer and use it in GitHub Desktop.
Search GitHub repositories in Backtick!
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
| var searchKey = prompt("Enter keywords for repositories:"); | |
| var array = searchKey.split(' '); | |
| var urlString = "https://github.com/search?q="; | |
| var suffix = "&ref=cmdform"; | |
| for (var i = 0; i < array.length; i++) { | |
| var key = array[i].replace("'", ""); | |
| if (i != (array.length - 1)) | |
| urlString += key + '+'; | |
| else | |
| urlString += key; | |
| } | |
| urlString += suffix | |
| window.location.replace(urlString); |
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
| { | |
| "name": "GitHub Search", | |
| "description": "Search GitHub from wherever you are on the web!", | |
| "icon": "https://github.global.ssl.fastly.net/images/modules/logos_page/GitHub-Mark.png", | |
| "link": "http://github.com" | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment