Skip to content

Instantly share code, notes, and snippets.

@tamasd
Created October 11, 2012 07:57
Show Gist options
  • Save tamasd/3870870 to your computer and use it in GitHub Desktop.
Save tamasd/3870870 to your computer and use it in GitHub Desktop.
pocket to readability

Open http://getpocket.com/a/queue/list/ Paste into the command line:

$.post("/a/x/get.php", {offset: 0, count: 1000, state: "queue", favorite: "null", sort: "oldest", search: "", tag: "", view: "list", formCheck: window.formCheck}, function (r) {var d = JSON.parse(r); var urls = []; for (var i in d.list) { urls.push(d.list[i].given_url); } alert(JSON.stringify(urls)); })

Copy the text from the popup.

Go to readability.com, log in Paste the code into the command line and replace the PASTE_HERE text with the one you have copied.

var urls = PASTE_HERE; for (var i in urls) { $.ajax({type: 'POST', url: '/articles/ajax/add_by_url', data: {url: urls[i]}, async: false}); console.log(urls[i]); }

Your browser might seem to be frozen, but do not worry.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment