-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add $urltransform (trusted) modifier support #1364
Comments
Merged Let's call it @slavaleleka could you please also create an issue in tsurlfilter? |
One question, I see that it's limited to relative redirects to the same origin in uBO. Do we want to allow redirects to any URLs since it's a trusted modifier anyways? Alternatively, we could allow redirects to one specific origin ( What do you think? |
uBO renamed to |
Hello Kind regards, |
We really want to improve the speed with which CoreLibs updates are rolled out so 1.15 shouldn't be that far. The main issue with this modifier is that it's kinda too powerful, we may need to make it more clear to the user what it means to make a filter list "trusted". |
For filter lists I think limiting it to Full trust level will be enough. I rather worry that this can be used in User rules, after seeing people add whatever rules they found online without second thought. AG apps has low-level settings which average user won't touch and I guess Full trust rules should be disabled by default and should only be enabled in the settings by advanced user. |
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:
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
@BlitW0
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.
The text was updated successfully, but these errors were encountered: