Documentation
¶
Overview ¶
Package extensions provides the Chrome DevTools Protocol commands, types, and events for the Extensions domain.
Defines commands and events for browser extensions. Available if the client is connected using the --remote-debugging-pipe flag and the --enable-unsafe-extension-debugging flag is set.
Generated by the cdproto-gen command.
Index ¶
Constants ¶
const (
CommandLoadUnpacked = "Extensions.loadUnpacked"
)
Command names.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LoadUnpackedParams ¶
type LoadUnpackedParams struct {
Path string `json:"path"` // Absolute file path.
}
LoadUnpackedParams installs an unpacked extension from the filesystem similar to --load-extension CLI flags. Returns extension ID once the extension has been installed.
func LoadUnpacked ¶
func LoadUnpacked(path string) *LoadUnpackedParams
LoadUnpacked installs an unpacked extension from the filesystem similar to --load-extension CLI flags. Returns extension ID once the extension has been installed.
See: https://chromedevtools.github.io/devtools-protocol/tot/Extensions#method-loadUnpacked
parameters:
path - Absolute file path.
type LoadUnpackedReturns ¶
type LoadUnpackedReturns struct {
ID string `json:"id,omitempty"` // Extension id.
}
LoadUnpackedReturns return values.