Greasy Fork is available in English.

General URL Cleaner Revived

Cleans URLs from various popular sites and removes tracking parameters

< General URL Cleaner Revivedについてのフィードバック

レート:良 – スクリプトは良好に動作する

§
投稿日: 2024/09/20

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

dividedby作者
§
投稿日: 2024/09/22

Thanks, I just updated the script!

§
投稿日: 2024/09/25

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

dividedby作者
§
投稿日: 2024/09/28

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.

§
投稿日: 2024/11/20
編集日: 2024/11/20

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.

§
投稿日: 2025/01/02
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.)

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

§
投稿日: 2025/01/03

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.

返信を投稿

返信を投稿するにはログインしてください。