Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
A Reddit user script to import posts from Stack Overflow.
#!/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
You can’t perform that action at this time.