3 comments

[ 0.24 ms ] story [ 12.1 ms ] thread
This is awesome.

I often share Amazon links by email or other apps, and would love to just send a minimal link to the book, instead of a long link that contains my search term and whatever else. Until now, I've edited the URL manually, which is fine, except when I backspace a bit too far and need to start again.

EDIT: It failed on the first Amazon URL I tried. The URL was working before 'clearing useless parameters', but not after:

Before: https://www.amazon.co.uk/gp/aw/d/B08V73BXZJ/ref=ox_sc_act_im...

Ouch, the clearing module uses the ClearUrl dataset [1] to edit the url. I doubt the dataset is wrong, so probably I'm implementing it incorrectly. I'll take a look. Thanks for the report!

[1] https://docs.clearurls.xyz/1.22.0/

Found the issue. I'm currently rewriting how the rules are detected and cleared, hope to have an new version soon!