I need to enable my chrome extension for all urls and have a list of exceptions for which the chrome extension is disabled.
I am able to create a list of urls for which the extension is enabled with the following code.
chrome.declarativeContent.onPageChanged.addRules([{
conditions: [
new chrome.declarativeContent.PageStateMatcher({pageUrl: {hostContains: host},})
],
actions: [
new chrome.declarativeContent.ShowPageAction()
]
}]);
This is the white list approach.
I can't figure out how to implement the black list approach. Can someone help?
Thanks!