Skip to content

Instantly share code, notes, and snippets.

@barneygale
Created October 6, 2011 17:29
Show Gist options
  • Select an option

  • Save barneygale/1268030 to your computer and use it in GitHub Desktop.

Select an option

Save barneygale/1268030 to your computer and use it in GitHub Desktop.
jsrpc = JSRPC()
jsrpc.start()
print "window.location.href: %s" % jsrpc.sync.window.location.href
power_level = int(jsrpc.sync.window.prompt('What is your power level?'))
if power_level > 9000:
print "ITS OVER 9000!"
else:
print "Not over 9000 :("
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment