Adds a copy short url button to AliExpress item page. Copies a nice link instead of a long one.
This userscript requires Tampermonkey extension to work which is available for all popular browsers including Chrome, Firefox, Edge
- bringing back support for old Aliexpress site
- trigger scripts on /store/product
- using alternate instead of amphtml which is not present on old Ali
- fix location of copy button for old Aliexpress site
- support old Aliexpress site layout as it seems like it still loads for some users
- improved detection of short url by parsing amphtml link from source code
- in some cases url in address bar includes full description which is causing long "short" urls
- if amphtml is not present, will use url from address bar
- compatibility with latest changes on Aliexpress
- removed /store/product/ as everything is now redirected to /item/
- reusing GM functions for adding styles and working with clipboard
- fixed URL include in description, was missing /store/product/
- Copy to clipboard action now has visual confirmation
- turns green if copied to clipboard
- turns red if unsuccessful
- initial release