Hello developers,
Over the past few months, we have been working on the chrome.declarativeNetRequest API. The API allows extensions to specify declarative rules to block and redirect network requests. It provides a more performant and privacy-friendly alternative to the existing webRequest API since the request is evaluated in the browser itself and it is never exposed to the extension. It’s currently available on the dev channel and will be available on M72 beta.
Please try the new API and let us know of any feedback you have. For any bugs or feature requests, please open a new issue at crbug.com.
Thanks!
On Tuesday, November 20, 2018 at 10:08:19 PM UTC, karan...@chromium.org wrote:Please try the new API and let us know of any feedback you have.
--I've barely spent much time playing with it, but some things I noticed so far:
- I can't see where the format of page_patterns is documented.
- 30,000 is way too low a limit for MAX_NUMBER_OF_RULES. 100,000+ would be more reasonable.
- Element collapsing should remove the element instead of hide it, otherwise you're left with loads of white-space on the page.
You received this message because you are subscribed to the Google Groups "Chromium Extensions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-extens...@chromium.org.
To post to this group, send email to chromium-...@chromium.org.
Visit this group at https://groups.google.com/a/chromium.org/group/chromium-extensions/.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-extensions/e31ca764-6ff4-4560-9455-72cfe1969145%40chromium.org.
For more options, visit https://groups.google.com/a/chromium.org/d/optout.
- I can't see where the format of page_patterns is documented.
- 30,000 is way too low a limit for MAX_NUMBER_OF_RULES. 100,000+ would be more reasonable.
- Element collapsing should remove the element instead of hide it, otherwise you're left with loads of white-space on the page.
You received this message because you are subscribed to a topic in the Google Groups "Chromium Extensions" group.
To unsubscribe from this topic, visit https://groups.google.com/a/chromium.org/d/topic/chromium-extensions/qNqURIh4Nss/unsubscribe.
To unsubscribe from this group and all its topics, send an email to chromium-extens...@chromium.org.
To post to this group, send email to chromium-...@chromium.org.
Visit this group at https://groups.google.com/a/chromium.org/group/chromium-extensions/.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-extensions/CABc02_%2Bpu-osRkX1rKMi9gNUxyMCW%3D9d0XreNxyyOGq5am18oA%40mail.gmail.com.
Ace, thanks. While you're updating the documentation, I noticed a typo
in the first example. The key name there is "resource_types" but I think
it should be "resourceTypes".
Yep, that's using the new API. Sure, here's a bug:
https://bugs.chromium.org/p/chromium/issues/detail?id=926136
I have a question, do the "domains" and "includedDomains" support
wildcards? In other words, is there a way to specify google.com and
all subdomains of google.com? (The Safari API[1] supports that with
"if-domain" and "unless-domain", you just have to prepend "*" to the
domain.)
4. When reporting problems with rules, it would be useful to providemore information. For example, instead of "Rule could not be parsed"
5. Also, it would be great if the error message could say the
troublesome rule's ID, instead of its index in the rule list. I
found that confusing. (Often the number's one off, since you have to
start the IDs at > 0.)
6. It would be much easier if the API took care of Unicode characters
in the "urlFilter". It's non trivial for the consumer of the API to
parse a filter in that syntax, split out the domain part, convert
that to punycode, and then deal with converting characters
elsewhere.
7. Have you considered making isUrlFilterCaseSensitive default to false?
I think that might make more sense since Adblock Plus blocking
filters default to being case insensitive.



8. Another thing that would be really helpful is having an option to specify origin URL mask and not just the domain name. This is useful for large websites (like google.com for instance) which have different web apps in different locations of the same website (for instance, google.com/maps and google.com/flights).