You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Asynchronous GM.import for importing internal and remote modules
It returns a promise which fulfills to a module namespace object: an object containing all exports from moduleName.
The current format is due to the limitations in userScripts context, as it is not possible to directly pass the class to the userScripts context. The API may change once MV3 scripting is finalised.
// variables must match module exportsconst{PSL}=awaitGM.import('https://raw.githubusercontent.com/erosman/psl/main/psl.js');constresult=PSL.parse('mail.yahoo.co.uk');// Object { subdomain: "mail", domain: "yahoo.co.uk", sld: "yahoo", tld: "co.uk" }
Internal module: PSL (Public Suffix List)
PSL (Public Suffix List) was created for the multi-site "Find scripts for this site", and has been made available to userscripts.
New APIs in FireMonkey 2.68 ...
GM.import()
Asynchronous
GM.import
for importing internal and remote modulesIt returns a promise which fulfills to a module namespace object: an object containing all exports from
moduleName
.The current format is due to the limitations in
userScripts
context, as it is not possible to directly pass the class to theuserScripts
context. The API may change once MV3 scripting is finalised.Internal module: PSL (Public Suffix List)
PSL (Public Suffix List) was created for the multi-site "Find scripts for this site", and has been made available to userscripts.
import Option
Experimental Import Attributes is supported but the proposal is not finalised yet.
Return value: based on option type
object
string
DocumentFragment
ⓘSee also:
The text was updated successfully, but these errors were encountered: