Created
September 23, 2018 13:00
-
-
Save corecode/b269848e9f759f0fb5b3f621de6b2e3b to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| // ==UserScript== | |
| // @run-at document-start | |
| // @id Ebay URL Cleaner | |
| // @name Ebay URL Cleaner | |
| // @namespace | |
| // @description Clean ebay item URL | |
| // @include http://www.ebay.tld/itm/* | |
| // @include https://www.ebay.tld/itm/* | |
| // @version 1.1 | |
| // ==/UserScript== | |
| var newurl = document.URL.match(/https?:\/\/(|www).ebay.(.+?)\/itm/g) + document.URL.match(/\/[0-9]{11,13}[^#?/]/g); | |
| if (newurl != document.URL) location.replace(newurl); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment