Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Exclude matches in Chrome extension manifest

In content_script options of my extension's manifest.json:

{
            "matches": [
                "*://*.pipedrive.com/*"
            ],
            "exclude_globs": [
                "://www.pipedrive.com/*"
            ],
            "css": [
                "content/callbox.css",
                "content/pipedrive/pipedrive.css"
            ],
            "js": [
                "assets/js/jssip-2.0.6.min.js",
                "content/message.js",
                "content/callbox.js",
                "content/pipedrive/pipedrive.js"
            ]
        }

I want these scripts run in subdomain of pipedrive excluding the main homepage (www.pipedrive.com), both exclude_globs and exclude_matches do not work, these scripts still run in www.pipedrive.com. How can I make it?

like image 922
necroface Avatar asked Oct 13 '25 04:10

necroface


1 Answers

I lacked the * before :// in exclude_globs

like image 135
necroface Avatar answered Oct 14 '25 19:10

necroface



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!