Skip to content

Instantly share code, notes, and snippets.

@ozero
Created January 28, 2013 06:07
Show Gist options
  • Save ozero/4653378 to your computer and use it in GitHub Desktop.
Save ozero/4653378 to your computer and use it in GitHub Desktop.
List product page URLs from Amazon(jp) purchase history page with console.log(). Paste the code below to chrome's DevTools console, then hit enter.
var e = document.getElementsByTagName("a");
for(i = 0; i < e.length; i++){
var s = e[i].href;
if(s.match(/\/gp\/product\//)){console.log(s);}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment