General URL Cleaner

Cleans URL's from various popular sites.

< Părere la script-ul General URL Cleaner

Recenzie: OK - script works, but has bugs

§
Postat în: 09-01-2020
Editat în: 09-01-2020

Does not work as expected(Amazon)

When I search "PLT-M70" on www.amazon.co.jp, some links are all "/dp/PLANTRONIC". e.g.

 function cleanAmazonItemdp(a) {
-    let item = a.pathname.match(/\/[A-Z0-9]{10}/);
+    let item = a.pathname.match(/\/dp(\/[A-Z0-9]{10})/)[1];
     return a.origin + '/dp' + item + a.hash;
 }

Postează un raspuns

Autentifică-te pentru a posta un răspuns.