chrome.extensionTypes
Description: |
The chrome.extensionTypes API contains type declarations for Chrome extensions.
|
Availability: |
Since Chrome 39.
|
Summary
Types | |
---|---|
ImageFormat | |
ImageDetails | |
RunAt | |
CSSOrigin | |
InjectDetails |
Types
ImageFormat
Enum |
---|
"jpeg" ,
or "png"
|
ImageDetails
properties | ||
---|---|---|
enum of "jpeg" , or "png" |
(optional) format |
The format of the resulting image. Default is |
integer | (optional) quality |
When format is |
RunAt
Enum |
---|
"document_start" ,
"document_end" ,
or "document_idle"
|
CSSOrigin
Enum |
---|
"author" ,
or "user"
|
InjectDetails
properties | ||
---|---|---|
string | (optional) code |
JavaScript or CSS code to inject. |
string | (optional) file |
JavaScript or CSS file to inject. |
boolean | (optional) allFrames |
If allFrames is |
integer | (optional) frameId |
Since Chrome 50. The frame where the script or CSS should be injected. Defaults to 0 (the top-level frame). |
boolean | (optional) matchAboutBlank |
If matchAboutBlank is true, then the code is also injected in about:blank and about:srcdoc frames if your extension has access to its parent document. Code cannot be inserted in top-level about:-frames. By default it is |
enum of "document_start" , "document_end" , or "document_idle" |
(optional) runAt |
The soonest that the JavaScript or CSS will be injected into the tab. Defaults to "document_idle". |
enum of "author" , or "user" |
(optional) cssOrigin |
Since Chrome 66.
The origin of the CSS to inject. This may only be specified for CSS, not JavaScript. Defaults to |