Browser.extensions() 方法
🌐 Browser.extensions() method
检索浏览器中安装的所有扩展的映射,其中键是扩展 ID,值是相应的 Extension 实例。
🌐 Retrieves a map of all extensions installed in the browser, where the keys are extension IDs and the values are the corresponding Extension instances.
语法
🌐 Signature
class Browser {
abstract extensions(): Promise<Map<string, Extension>>;
}
返回:
Promise<Map<string, Extension>>