Created
March 14, 2014 12:05
-
-
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)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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