0 points

Exclude and Include Matches for Content Scripts in Google Chrome


dashboard

Sat May 09 2020 12:31:59 GMT+0000 (UTC)

Posted by @faustj4r #C #C# #webassembly

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

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