-
Notifications
You must be signed in to change notification settings - Fork 9
Description
It might be useful to have a $rewrite modifier that supports all kinds of redirections, basically a $replace modifier for URLs.
There are many use cases where this modifier may be useful, but overall it's too dangerous to allow it to be used in third-party lists so it should be limited to trusted filters only.
UPD 17.01.2024: uBO renamed to uritransform since syntax was changed in 1.54. #1364 (comment)
Original report:
Details
@BlitW0 commented on [Wed Oct 14 2020](https://github.com/AdguardTeam/AdguardForAndroid/issues/3634)Problem Description
Add a way to redirect a URL to a different URL based on regex rules.
Proposed Solution
No idea how it would work, but it might be separate section in settings since standard filter rules do not support URL redirection.
Alternatives Considered
Tried to see if standard filters with ABP syntax can do this, but was not able to find anything.
@TheHasagi commented on Thu Oct 15 2020
Hello! Can you explain with more details for what purposes do you need such a feature?
@zzebrum commented on Mon Oct 19 2020
@BlitW0 any update?
@BlitW0 commented on Mon Oct 19 2020
My reason was for redirecting reddit's awful mobile website to the compact version or old reddit. It might also be useful for different sites in the same manner? I know it is possible through userscripts but it may not always be possible to write scripts on mobile, so this can be an easier way through GUI.