Greasy Fork is available in English.
Cleans URLs from various popular sites and removes tracking parameters
< Feedback on General URL Cleaner Revived
Thanks, I just updated the script!
for some reason this still includes links under amazon.com/review, which shouldn't - it breaks "review this item" links.
for some reason this still includes links under amazon.com/review, which shouldn't - it breaks "review this item" links.
How do you get to one of those links? Can you share an example? If I am in my order history and click on “Write a product review” it takes me to a page to submit a review, but not sure that is what you are referring to.
When clicking on "View Order" on a product page of some I've already purchased to try and view the "Order Details" page it bugs out and redirects to the "Your Orders" page.
Basically breaks https://www.amazon.com/gp/your-account/order-details/ref=dp_iou_view_this_order?ie=UTF8&orderID= by turning it into https://www.amazon.com/gp/your-account/order-details/orderID=
Please fix, one of my favorite scripts.
When clicking on "View Order" on a product page of some I've already purchased to try and view the "Order Details" page it bugs out and redirects to the "Your Orders" page.
Seems the order search results don't contain /gp/ so it breaks the exclusion.
Change amazon exclusion (line 25) with the below which should work whether the URL contains /gp/ or not and hopefully not break anything else (seems ok to me so far)// @exclude /^https:\/\/[a-z0-9.]*\.?amazon(\.[a-z0-9]{2,3})?(\.[a-z]+)?\/(?:gp\/(?:cart|buy|css|legacy|your-account|your-orders).*|sspa.*|.*(?:cart|buy|css|legacy|your-account|your-orders).*)$/
(Full disclosure, my regex sucks so I asked chatgpt to fix it for me.)
When clicking on "View Order" on a product page of some I've already purchased to try and view the "Order Details" page it bugs out and redirects to the "Your Orders" page.
OK, wasn't able to update my previous comment but I just realised that's a fix for a different but similar problem. I'm seeing the same problem as you on product pages that contain /dp/. The following fixes the above and also excludes URLs containing /dp/ (which again, hopefully doesn't break anything else)// @exclude /^https:\/\/[a-z0-9.]*\.?amazon(\.[a-z0-9]{2,3})?(\.[a-z]+)?\/(?:gp\/(?:cart|buy|css|legacy|your-account|your-orders).*|dp\/.*|sspa.*|.*(?:cart|buy|css|legacy|your-account|your-orders).*)$/
ok, still having issues and I realise that the last edit will exclude too much (anything with a /dp/ url is overkill). Encountered the issue on another product page, the other type of URL with /gp/product/ anyway.
I can see the issue is the cleaner is removing everything but orderID=, we just need to keep one ? before it. So far I haven't had any luck.
You can shorten the amazon excludes into one with (cart|buy|css|legacy|your-account)
/^https:\/\/[a-z0-9.]*\.?amazon(\.[a-z0-9]{2,3})?(\.[a-z]+)?\/gp\/(cart|buy|css|legacy|your-account).*$/