Smile4ever / Neat-URL

Neat URL cleans URLs, removing parameters such as Google Analytics' utm parameters.
Other
631 stars 37 forks source link

Ebay: remove item name from url #154

Closed dadosch closed 6 years ago

dadosch commented 6 years ago

Normally a ebay item has such a url: https://www.ebay.com/itm/thisistheitemname-with-dashes-instead-spaces/99999999999 where 99999999999 is the id.

However, you can remove the item name and it works just fine: https://www.ebay.com/itm/99999999999

Would that be possible to implement, even it is not a 'typical' parameter?

yssmcl commented 6 years ago

I guess you can do that with https://addons.mozilla.org/en-US/firefox/addon/requestcontrol

dadosch commented 6 years ago

For reference, the rule can be [ { "uuid": "d94a0ab2-5036-43ef-9e67-826c9c554f84", "pattern": { "scheme": "*", "host": [ "*.ebay.*" ], "path": [ "itm/*" ], "topLevelDomains": [ "at", "be", "ca", "ch", "co.uk", "com", "cz", "de", "dk", "es", "fi", "fr", "gr", "hu", "ie", "it", "nl", "no", "pl", "pt", "tr", "ru", "se" ] }, "types": [ "main_frame" ], "action": "redirect", "active": true, "redirectUrl": "{protocol//$&}//{hostname//$&}{pathname/(itm)\\/[^\\/]+\\//itm/}{search//$&}", "paramsFilter": { "values": [ "{pathname/.*\\/([0-9]{12})\\/.*/\\1}" ] } } ]