API > wxt > IsolatedWorldContentScriptEntrypointOptions
Interface: IsolatedWorldContentScriptEntrypointOptions
Contents
Extends
Properties
allFrames
allFrames?:
PerBrowserOption<undefined|boolean>
See https://developer.chrome.com/docs/extensions/mv3/content_scripts/
Default
falseInherited from
BaseContentScriptEntrypointOptions.allFrames
Source
packages/wxt/src/types/index.ts:599
cssInjectionMode
cssInjectionMode?:
PerBrowserOption<"ui"|"manifest"|"manual">
Customize how imported/generated styles are injected with the content script. Regardless of the mode selected, CSS will always be built and included in the output directory.
"manifest"- Include the CSS in the manifest, under the content script'scssarray."manual"- Exclude the CSS from the manifest. You are responsible for manually loading it onto the page. Usebrowser.runtime.getURL("content-scripts/<name>.css")to get the file's URL"ui"- Exclude the CSS from the manifest. CSS will be automatically added to your UI when callingcreateShadowRootUi
Default
"manifest"Inherited from
BaseContentScriptEntrypointOptions.cssInjectionMode
Source
packages/wxt/src/types/index.ts:618
exclude
exclude?:
string[]
List of target browsers to exclude this entrypoint from. Cannot be used with include. You must choose one of the two options.
Default
undefinedInherited from
BaseContentScriptEntrypointOptions.exclude
Source
packages/wxt/src/types/index.ts:549
excludeGlobs
excludeGlobs?:
PerBrowserOption<undefined|string[]>
See https://developer.chrome.com/docs/extensions/mv3/content_scripts/
Default
[]Inherited from
BaseContentScriptEntrypointOptions.excludeGlobs
Source
packages/wxt/src/types/index.ts:594
excludeMatches
excludeMatches?:
PerBrowserOption<undefined|string[]>
See https://developer.chrome.com/docs/extensions/mv3/content_scripts/
Default
[]Inherited from
BaseContentScriptEntrypointOptions.excludeMatches
Source
packages/wxt/src/types/index.ts:584
include
include?:
string[]
List of target browsers to include this entrypoint in. Defaults to being included in all builds. Cannot be used with exclude. You must choose one of the two options.
Default
undefinedInherited from
BaseContentScriptEntrypointOptions.include
Source
packages/wxt/src/types/index.ts:542
includeGlobs
includeGlobs?:
PerBrowserOption<undefined|string[]>
See https://developer.chrome.com/docs/extensions/mv3/content_scripts/
Default
[]Inherited from
BaseContentScriptEntrypointOptions.includeGlobs
Source
packages/wxt/src/types/index.ts:589
matchAboutBlank
matchAboutBlank?:
PerBrowserOption<undefined|boolean>
See https://developer.chrome.com/docs/extensions/mv3/content_scripts/
Default
falseInherited from
BaseContentScriptEntrypointOptions.matchAboutBlank
Source
packages/wxt/src/types/index.ts:577
matchOriginAsFallback
matchOriginAsFallback?:
PerBrowserOption<boolean>
See https://developer.chrome.com/docs/extensions/mv3/content_scripts/
Default
falseInherited from
BaseContentScriptEntrypointOptions.matchOriginAsFallback
Source
packages/wxt/src/types/index.ts:604
matches
matches:
PerBrowserOption<string[]>
Inherited from
BaseContentScriptEntrypointOptions.matches
Source
packages/wxt/src/types/index.ts:567
registration
registration?:
PerBrowserOption<"manifest"|"runtime">
Specify how the content script is registered.
"manifest": The content script will be added to thecontent_scriptsentry in the manifest. This is the normal and most well known way of registering a content script."runtime": The content script'smatchesis added tohost_permissionsand you are responsible for using the scripting API to register/execute the content script dynamically at runtime.
Default
"manifest"Inherited from
BaseContentScriptEntrypointOptions.registration
Source
packages/wxt/src/types/index.ts:630
runAt
runAt?:
PerBrowserOption<undefined|RunAt>
See https://developer.chrome.com/docs/extensions/mv3/content_scripts/
Default
"documentIdle"Inherited from
BaseContentScriptEntrypointOptions.runAt
Source
packages/wxt/src/types/index.ts:572
world
world?:
"ISOLATED"
See https://developer.chrome.com/docs/extensions/develop/concepts/content-scripts#isolated_world
Default
"ISOLATED"Source
packages/wxt/src/types/index.ts:647
Generated using typedoc-plugin-markdown and TypeDoc