Skip to content

Instantly share code, notes, and snippets.

@heyalexej
Forked from ozero/gist:4653378
Last active August 29, 2015 14:24
Show Gist options
  • Save heyalexej/25d72be2e94a37067f4e to your computer and use it in GitHub Desktop.
Save heyalexej/25d72be2e94a37067f4e to your computer and use it in GitHub Desktop.
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