Created
May 8, 2011 22:35
-
-
Save tlrobinson/961765 to your computer and use it in GitHub Desktop.
Slightly less ghetto JavaScript console bookmarklet for MobileSafari
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 l,r="";while(l=prompt(r)){try{r=String(eval(l));}catch(e){r="Error: "+e}}})(); |
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
(function() { | |
var l, r = ""; | |
while (l = prompt(r)) { | |
try { | |
r = String(eval(l)); | |
} catch (e) { | |
r = "Error: "+e | |
} | |
} | |
})() |
For posterity:
javascript:alert(eval(prompt()))
When running console.log(‘test’)
on iOS it gives
Error: SyntaxError: Invalid character '\u2018'
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bootstrap developed using the ghetto console so I guess it wasn't that bad :-/