Last active
March 25, 2016 00:08
-
-
Save serverhiccups/5ec9a68a05a3d4dc35ea to your computer and use it in GitHub Desktop.
A js program to search the scratch wiki.
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 searchterm = encodeURI(prompt("Enter your search term")); | |
if searchterm = null { | |
console.log("Error: null is invalid input.") | |
} else { | |
var url = "http://wiki.scratch.mit.edu/w/index.php?title=Special%3ASearch&profile=default&search=" + searchterm + "&fulltext=Search"; | |
window.open(url); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment