Greasy Fork is available in English.

General URL Cleaner Revived

Cleans URLs from various popular sites and removes tracking parameters

< Feedback on General URL Cleaner Revived

Review: Good - script works

§
Posted: 20. 09. 2024

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).*$/

dividedbyAuthor
§
Posted: 22. 09. 2024

Thanks, I just updated the script!

§
Posted: 25. 09. 2024

for some reason this still includes links under amazon.com/review, which shouldn't - it breaks "review this item" links.

dividedbyAuthor
§
Posted: 28. 09. 2024

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.

§
Posted: 20. 11. 2024
Edited: 20. 11. 2024

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.

§
Posted: 02. 01. 2025
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.)

§
Posted: 02. 01. 2025
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).*)$/

§
Posted: 03. 01. 2025

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.

Post reply

Sign in to post a reply.