Closed dadosch closed 6 years ago
I guess you can do that with https://addons.mozilla.org/en-US/firefox/addon/requestcontrol
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}" ] } } ]
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?