-
Notifications
You must be signed in to change notification settings - Fork 83
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
[Feature request] Add RegEx for dynamic filterrules #2242
Comments
I tend to wish if it supported entity filter i.e. |
Yeah sounds fair |
There is no tokenization taking place in dynamic filtering rules, it's all lookup tables using hostnames as keys, hence why it's fast compared to static filtering -- and using lookup tables means no possibility of regex or wildcard. I do not intend to change this. |
Aight thx for clarifying |
Forgive me for thought experiment. Will this be too much code change to add a user-editable variable, say,
but in the pane it shows as |
Yes. The purpose of dynamic filtering is not to converge toward static filtering capabilities; the purpose is to be a point-and-click way to add/remove hostname-based firewall-like rules. Any sort of syntax for which there are no point-and-click user interface is not a good fit for dynamic filtering, that falls into static filtering realm. Beside, proposing complications like this should always, always come with real world cases to support such propositions. When you start to look at real world cases, I highly doubt they will prove to be valid use cases. |
I meant e.g. |
People visit specific ones, so they will point-and-click for the one they end up visiting. An actual use case would go in details to show why it's really tedious for dynamic filtering users to point-and-click on the kisscartoon sites they happen to visit. I highly doubt someone would complain that they need the feature because they visited 10 kisscartoon sites and had to set the same set of rules, and if so, I would advise them that since they are willing to manually create rules, might as well use static filtering with a filter such as I gather that if people who request such features would have to do the actual work themselves to implement it while also able to apprehend the sprawling complications to the point-and-click user interface, the performance implications, and the future workload of merely maintaining all that new code, they would realize the task of managing a few dynamic rules with the current implementation is completely trivial in comparison. |
Duplicate of #439 |
Prerequisites
I tried to reproduce the issue when...
Description
I have JavaScript blocking enabled, but wish to be able to deactivate it for a range of webpages, e. g. all with the string "git" in them. I really appreciate the regex function in the exception rules section and would like to have something comparable for the dynamic rules section.
A specific URL where the issue occurs
https://github.com/
Steps to Reproduce
lorem ipsum
Expected behavior
Being able to use regex like
no-scripting: /^.git./ false
Actual behavior
uBlock Origin version
1.44.0
Browser name and version
Firefox 104.0.1 (64-Bit)
Operating System and version
macOS Big Sur 11.6.8
The text was updated successfully, but these errors were encountered: