Skip to content

Instantly share code, notes, and snippets.

@sandywu
Forked from tlrobinson/gist:961765
Created May 9, 2011 07:18
Show Gist options
  • Save sandywu/962190 to your computer and use it in GitHub Desktop.
Save sandywu/962190 to your computer and use it in GitHub Desktop.
Slightly less ghetto JavaScript console bookmarklet for MobileSafari
javascript:(function(){var l,r="";while(l=prompt(r)){try{r=String(eval(l));}catch(e){r="Error: "+e}}})();
(function() {
var l, r = "";
while (l = prompt(r)) {
try {
r = String(eval(l));
} catch (e) {
r = "Error: "+e
}
}
})()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment