Skip to content

Instantly share code, notes, and snippets.

@banksJeremy
Created November 19, 2011 20:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save banksJeremy/1379335 to your computer and use it in GitHub Desktop.
Save banksJeremy/1379335 to your computer and use it in GitHub Desktop.
#!/usr/bin/env coffee --compile
return unless location.host.match /(\.|^)reddit.com$/
user = 'fromStackOverflow'
passwd = 'thisI5r34ll1 the PAsw dsro =0'
login
$.post '/api/login', {user, passwd}
.done (response) ->
$.post '/api/submit',
uh = $("[name=uh]").val()
.error ->
foo
api
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment