RegisteredUserScript class

Constructors

RegisteredUserScript({bool? allFrames, List<String>? excludeMatches, required String id, List<String>? includeGlobs, List<String>? excludeGlobs, List<ScriptSource>? js, List<String>? matches, RunAt? runAt, ExecutionWorld? world, String? worldId})
RegisteredUserScript.fromJS(RegisteredUserScript _wrapped)

Properties

allFrames ↔ bool?
If true, it will inject into all frames, even if the frame is not the top-most frame in the tab. Each frame is checked independently for URL requirements; it will not inject into child frames if the URL requirements are not met. Defaults to false, meaning that only the top frame is matched.
getter/setter pair
excludeGlobs ↔ List<String>?
Specifies wildcard patterns for pages this user script will NOT be injected into.
getter/setter pair
excludeMatches ↔ List<String>?
Excludes pages that this user script would otherwise be injected into. See Match Patterns for more details on the syntax of these strings.
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
id ↔ String
The ID of the user script specified in the API call. This property must not start with a '_' as it's reserved as a prefix for generated script IDs.
getter/setter pair
includeGlobs ↔ List<String>?
Specifies wildcard patterns for pages this user script will be injected into.
getter/setter pair
js ↔ List<ScriptSource>?
The list of ScriptSource objects defining sources of scripts to be injected into matching pages. This property must be specified for ${ref:register}, and when specified it must be a non-empty array.
getter/setter pair
matches ↔ List<String>?
Specifies which pages this user script will be injected into. See Match Patterns for more details on the syntax of these strings. This property must be specified for ${ref:register}.
getter/setter pair
runAt ↔ RunAt?
Specifies when JavaScript files are injected into the web page. The preferred and default value is document_idle.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
toJS → RegisteredUserScript
no setter
world ↔ ExecutionWorld?
The JavaScript execution environment to run the script in. The default is USER_SCRIPT.
getter/setter pair
worldId ↔ String?
Specifies the user script world ID to execute in. If omitted, the script will execute in the default user script world. Only valid if world is omitted or is USER_SCRIPT. Values with leading underscores (_) are reserved.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited