Skip to content
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

Want to create a regex to whitelist all google but no luck #2264

Closed
hserhk opened this issue Dec 24, 2016 · 3 comments
Closed

Want to create a regex to whitelist all google but no luck #2264

hserhk opened this issue Dec 24, 2016 · 3 comments

Comments

@hserhk
Copy link

hserhk commented Dec 24, 2016

I want to allow all traffic from google pages (e.g. google.com, drive.google.com, www.google.com.hk, www.google.co.jp), by using following regex:

^https?://(()|(.+.))google.(co|com)(()|(.[a-zA-Z]{2}))/

no matter I place it into Static or Whitelist, still not working, can anyone help? thanks

@lewisje
Copy link

lewisje commented Dec 24, 2016

Unfortunately, there's no "all-TLD" or "all-suffix" option for dynamic filters, there are no wildcards or regexes allowed in the Whitelist section, and uBO doesn't support the $document option for exception filters (static filters section, the one place that does allow regexes).

@gorhill
Copy link
Owner

gorhill commented Dec 24, 2016

"Whitelisting" in uBO means to completely disable uBO on a specific page/site.etc. If this is what you want, currently there is a known issue in the Whitelist pane which wrongfully mark an entry as invalid despite being valid, it was reported as a comment in a commit. I need to fix this.

Note: Your regex-based filter is missing the first /.

@hserhk
Copy link
Author

hserhk commented Dec 26, 2016

Thanks all!
Should I wait for the nexr release?

Ps: just found that this regex can be insert into whitelist if I remove all brackets.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants