gpt4 book ai didi

javascript - 按应用程序模式从扩展程序运行网页或本地页面

转载 作者:行者123 更新时间:2023-12-03 02:09:28 25 4
gpt4 key购买 nike

我在 stackoverflow 上读过这篇文章:

您可以在应用程序模式下运行 Chrome。

Windows:

Chrome.exe --app=https://google.com

Mac:

/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --app=https://google.com

Linux:

google-chrome --app=https://google.com This removes all toolbars, not just the address bar, but it will definitely increase your real estate without having to use Kiosk mode.

我想从我的 Chrome 扩展程序调用此任务。我的意思是从我的扩展中,如果使用单击按钮“在应用程序模式下加载”,那么它将运行上面的命令。我怎样才能打电话?

我需要的东西看起来像这样:

chrome.extension.runapp("Chrome.exe --app=https://google.com");

最佳答案

应用程序仍然是独立的。 Chrome 应用无法告诉您的计算机运行其他进程,包括其他 Chrome 进程。如果您的用户想要将某些内容作为应用程序打开,他们仍然必须自己执行此操作。

关于javascript - 按应用程序模式从扩展程序运行网页或本地页面,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49641408/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com