-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
Simplest way to allow a family of URLs? #862
Comments
Some common domains that I have nooped:
|
Thanks. I don't want to open up the whole By the way, doesn't |
I believe plain string are faster..
You can use dynamic URL filtering for that. Here is the rule i use.. And here are the other global rules i use, in one of the machine -
Edit: Only quirk is that, if the site is requesting the resource from http instead, you would have to create another entry for http as below.. Note: I converted almost all my dynamic filtering rules to dynamic URL Filtering. This allows more granular rules, without opening much.. |
You raise a good point but I am probably not as paranoid. I prefer to have more websites that work rather than to add more rules. In other words in this case I prefer convenience over privacy. Another point is that I only nooped them. This means they're falling back to filter lists, which should block the majority of tracking scripts and other bad scripts. |
@harshanvn that's interesting thanks. I'll try that. It's probably targeted enough even though it doesn't take into account the full URL, so I'd be comfortable with it. |
Yes, that is the answer. |
Didn't know dynamic filtering looked beyond the domain. That's good news. Is the path case-sensitive? In other words would Having just re-read @harshanvn's answer, I realize that this is a dynamic URL filtering rule, not the classic dynamic filtering. Do dynamic URL filters go in the |
It's more accurately "dynamic URL filtering". See "Overview of uBlock's network filtering engine". |
For reference to anyone else who runs into this: here is the page explaining Dynamic URL Filtering in detail. In the last paragraph of that page, @gorhill calls for a better example of the usefulness of Dynamic URL Filtering's granularity. The problem I ran into is a good case in point. I am not interested in allowing all scripts from |
FF 41
uBlock.0 1.3.1
Windows 7
I use dynamic filtering with the following rules:
* * 1p-script block
* * 3p-frame block
* * 3p-script block
* * inline-script block
. When a site requires JS to work, it very often relies on JQuery, most often from a Google CDN. I'd like to find a way to white-list these scripts from all domains. I envision that most of the time, they will not be run, but when I enable 1st-party scripts and these external libraries are called, they will automatically be connected.The Google hosted JS libraries can be found here. I am particularly interested in allowing the JQuery scripts. They are of the form
https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js
. Problem is, there are a couple dozens of them for the different versions, so I have a two part question.Is there a way to white-list a regex? eg:
^/http(s)?://ajax.googleapis.com/ajax/libs/jquery/[\d].[\d].[\d]/jquery.min.js$/
If so, would uBlock's performance be faster if I manually entered all such links? in the
My Rules
tab instead of relying on a regex?The text was updated successfully, but these errors were encountered: