Can't Toggle Static declarativeNetRequest Static Rules

293 views Asked by At

I see that Google wants Chrome Extension developers to migrate from chrome.webRequest to chrome.declarativeNetRequest. I see static rules, but the trouble there is that how do we allow a user to toggle individual rules on or off per website? Most users want whitelisting overrides. This is why we used chrome.webRequest to look at network connections on any given web page, and if any of those URLs matched a regexp ruleset, we could deny the request, and that Javascript could look to see if the user wanted to toggle that off on a given website to whitelist it.

Is there a way with declarativeNetRequest to look at any website and load in static rules that a user could toggle off (whitelist) for a given website if they desire from their options panel?

0

There are 0 answers