chrome的

编程入门 行业动态 更新时间:2024-10-10 07:27:57
chrome的--load-extension参数不起作用(--load-extension parameter for chrome doesn't work)

有谁知道如何从命令行加载解压缩的谷歌浏览器插件? 我尝试了以下,但它不起作用:

"C:\Users\<name>\AppData\Local\Google\Chrome\Application\chrome.exe" --load-extension="<path/to/unpacked/extension>"

上面的命令只打开一个chrome浏览器窗口,不加载我的扩展名。

Does anyone know how to load unpacked google chrome plugin from command line? I tried the following, but it doesn't work:

"C:\Users\<name>\AppData\Local\Google\Chrome\Application\chrome.exe" --load-extension="<path/to/unpacked/extension>"

The above command just opens a chrome browser window and doesn't load my extension.

最满意答案

大多数命令行标志仅在与Chrome配置文件对应的所有现有Chrome实例都已终止时才有效。

如果您没有看到任何Chrome窗口,请打开任务管理器并终止名为chrome.exe的每个进程。 完成此操作后,您可以使用--load-extension=...暂时加载Chrome扩展程序(只有在关闭所有正在运行的Chrome实例后,只有在关闭所有正在运行的Chrome实例后,当您启动没有此标记的Chrome时,扩展程序将会消失)。

Most of the command-line flags are only effective when all existing instances of Chrome that corresponds to the chrome profile have been terminated.

If you don't see any Chrome window, open the task manager and kill every process called chrome.exe. After doing that, you can use --load-extension=... to temporarily load a Chrome extension (the extension will be gone when you start Chrome without this flag, again only after closing all running instances of Chrome).

更多推荐

本文发布于:2023-08-08 01:16:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1466672.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:chrome

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!