Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Clean amazon url, only keeping dp/id
- javascript:(function(){
- if ( capture = /:\/\/(?:\w+)?\.?(amazon\.\w+)\/.*?(\/dp\/\w+)\W/.exec( document.URL ) ) {
- let newURL = "http://" + capture[1] + capture[2];
- console.log( 'Amazon Bookmarklet - Suggested URL: ' + newURL );
- window.location.href = newURL;
- }
- })()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement