Skip to content

Instantly share code, notes, and snippets.

@alvarogarcia7
Created January 27, 2016 18:47
Show Gist options
  • Save alvarogarcia7/445a987772d2e8d636a3 to your computer and use it in GitHub Desktop.
Save alvarogarcia7/445a987772d2e8d636a3 to your computer and use it in GitHub Desktop.
Choose the next item in pocket (getPocket.com)
var items = $(".item_link");
var size = items.size();
var nextLinkIndex = Math.floor((Math.random() * size));
var nextLink = items[nextLinkIndex];
//enable pop-ups if you have links to twitter or similar
nextLink.click();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment