JSON Schema Property 'content_scripts'

Description

Content scripts are JavaScript files that run in the context of web pages.

Diagram

Drilldown into /properties/content_scripts/items[0]JSON Schema Diagram of /properties/content_scripts

Value

Array

Array Index Type Description
1-n object /properties/content_scripts/items[0]
Minimum Items
1
Unique Items
True

Source

"content_scripts": {
    "type": "array",
    "description": "Content scripts are JavaScript files that run in the context of web pages.",
    "minItems": 1,
    "uniqueItems": true,
    "items": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
            "matches": {
                "type": "array",
                "description": "Specifies which pages this content script will be injected into.",
                "minItems": 1,
                "uniqueItems": true,
                "items": {
                    "$ref": "#/definitions/match_pattern"
                }
            },
            "exclude_matches": {
                "type": "array",
                "description": "Excludes pages that this content script would otherwise be injected into.",
                "uniqueItems": true,
                "items": {
                    "$ref": "#/definitions/match_pattern"
                }
            },
            "css": {
                "type": "array",
                "description": "The list of CSS files to be injected into matching pages. These are injected in the order they appear in this array, before any DOM is constructed or displayed for the page.",
                "uniqueItems": true,
                "items": {
                    "$ref": "#/definitions/uri"
                }
            },
            "js": {
                "$ref": "#/definitions/scripts",
                "description": "The list of JavaScript files to be injected into matching pages. These are injected in the order they appear in this array."
            },
            "run_at": {
                "type": "string",
                "description": "Controls when the files in js are injected.",
                "default": "document_idle",
                "enum": [
                    "document_start",
                    "document_end",
                    "document_idle"
                ]
            },
            "all_frames": {
                "type": "boolean",
                "description": "Controls whether the content script runs in all frames of the matching page, or only the top frame.",
                "default": false
            },
            "include_globs": {
                "type": "array",
                "description": "Applied after matches to include only those URLs that also match this glob. Intended to emulate the @include Greasemonkey keyword.",
                "uniqueItems": true,
                "items": {
                    "$ref": "#/definitions/glob_pattern"
                }
            },
            "exclude_globs": {
                "type": "array",
                "description": "Applied after matches to exclude URLs that match this glob. Intended to emulate the @exclude Greasemonkey keyword.",
                "uniqueItems": true,
                "items": {
                    "$ref": "#/definitions/glob_pattern"
                }
            },
            "match_about_blank": {
                "type": "boolean",
                "description": "Whether to insert the content script on about:blank and about:srcdoc.",
                "default": false
            }
        },
        "required": [
            "matches"
        ]
    }
}
http://json.schemastore.org/chrome-manifest (123:6)

References

Documentation for Chrome Manifest
Generated using Liquid Studio 2018 - JSON Studio Edition 16.0.0.7949