Created
September 10, 2016 14:20
-
-
Save nawada/3000fe6d904b5028eb2bc2f342fa2877 to your computer and use it in GitHub Desktop.
Amazon shorter URL generate javascript bookmarklet.
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
javascript:(function(){var m=location.pathname.match(/[dg]p\/.*?\/?[A-Z0-9]{10}/);var u=[location.origin, m[0]].join('/');prompt('Amazon Short URL',u);})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment