diegocr/CleanLinks

Clean URLs ending with "?rss"

Opened this issue · 2 comments

I've built a regex expression to clean various URLs but I've been unable to clean URLs ending with "?rss".

Example: http://roma.repubblica.it/cronaca/2016/08/23/news/roma_incendio_al_parco_del_pineto_nuvola_di_fumo_visibile_da_tutta_roma_nord-146478891/?rss

These links originate from the RSS feed of [http://www.repubblica.it] opened via Feedly [http://www.feedly.com/]

In particular the regex tested (in the "Remove From Links:" field) include:
|?rss.*
|?rss

I've also enabled the "Use Redirect Watcher" option but with no luck.

Any help?

What I have noticed is CL doesn't support the full regex syntax. You can't use the escape character or the match all .* syntax.

CL will only match "variables" in the url and clean the part until a specific character ? & =...

E.g.:

..../?rss=1b56a465

could be match with rss or rss\w*

Apologies for the late reply geokis, I've missed your post.

Yes, I've noticed it too.

I've tried to use rss and rss\w* but they don't work.

In the end I've solved this issue by using the Redirector addon: https://addons.mozilla.org/en-US/firefox/addon/redirector/