有谁知道如何从命令行加载解压缩的谷歌浏览器插件? 我尝试了以下,但它不起作用:
"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).
更多推荐
发布评论