Exclude and Include Matches for Content Scripts in Google Chrome

PHOTO EMBED

Sat May 09 2020 12:31:59 GMT+0000 (Coordinated Universal Time)

Saved by @faustj4r #C #C# #webassembly

{
  "name": "My extension",
  ...
  "content_scripts": [
    {
      "matches": ["http://*.nytimes.com/*"],
      "exclude_matches": ["*://*/*business*"],
      "js": ["contentScript.js"]
    }
  ],
  ...
}
content_copyCOPY

https://developer.chrome.com/extensions/content_scripts