chrome.declarativeNetRequest: How to allow blocked URL

278 Views Asked by At

I want to make a Chrome extension that initially blocks the access to a specific website (e.g. example.com), and then, based on some conditions, it allows the user to access it.

As a starting point, I have used the source code from Github that blocks the access to the above mentioned domain name. However, I have read the official documentation from here, but I have not found any specifications concerning how to modify the RuleActionType of a static rule. There is mentioned just how to enable/disable rules, not how to modify there parameters.

Any help is appreciated. Many thanks in advance!

0

There are 0 best solutions below