Skip to content

Instantly share code, notes, and snippets.

@vilcans
Created April 7, 2010 06:37
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vilcans/358606 to your computer and use it in GitHub Desktop.
Save vilcans/358606 to your computer and use it in GitHub Desktop.
import urllib
print 'javascript:' + urllib.quote("""
(function(){
var e = document.createElement('script');
e.src='/boot.js';
e.type='text/javascript';
document.getElementsByTagName('body')[0].appendChild(e);})()
""".strip().replace('\n', ' '))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment