Skip to content

Instantly share code, notes, and snippets.



Created Jun 22, 2011
What would you like to do?
Fetch saved links from reddit. Paste into a web browser's JavaScript console to run. Make sure you enable popups.
(function(cb, after, saved) {
var next = arguments.callee
console.log("Requesting after", after)
$.getJSON('', {after:after}, function(data) {
saved = (saved || []).concat(
if ( {
console.log('Fetched:', saved.length)
next(cb,, saved)
} else {
})(function(saved) {
var out = []
saved.forEach(function(r) {
out.push('<p><a href="' + + '">' + + '</a></p>')
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.