Skip to content

Instantly share code, notes, and snippets.

@Kein1945
Created March 14, 2014 12:05
Show Gist options
  • Save Kein1945/9546472 to your computer and use it in GitHub Desktop.
Save Kein1945/9546472 to your computer and use it in GitHub Desktop.
Javascript console snippet for fast add many url's to pocket. Run from chrome debugger console(ctrl+shift+J)
// formCheck - global variable token from page
// Enter in prompt articles url with new line delemiter
var _add = function (url){
$.ajax({
url: 'http://getpocket.com/a/x/itemAction.php'
,data:{
action: 'add'
,formCheck: formCheck
, url: url
}
, type: 'post'
});
}
, articles = prompt().split("\n");
for(i in art) {
_add(articles[i])
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment