gpt4 book ai didi

javascript - 如何更改 chrome ://flags using chrome API?

转载 作者:行者123 更新时间:2023-11-27 22:54:14 31 4
gpt4 key购买 nike

我刚刚开始使用 Chrome 扩展 API,有一个带有实验性功能的设置页面,我需要更改其中一些功能。如何使用 API 更改这些设置?

chrome://flags <= 实验功能

谢谢!

最佳答案

您可以查看这个documentation关于 *chrome.experimental.API

此处包含有关如何使用此 API 的步骤。

要在浏览器中启用此 API,您可以通过以下两种方式之一执行此操作:

  • 转到 chrome://flags,找到“实验性扩展 API”,点击其“启用”链接,然后重新启动 Chrome。从现在开始,除非您返回该页面并禁用实验性 API,否则您将能够运行使用实验性 API 的扩展程序和应用。

  • 每次启动浏览器时指定 --enable-experimental-extension-apis 标志。在 Windows 上,您可以通过修改用于启动 Google Chrome 的快捷方式的属性来执行此操作。例如:path_to_chrome.exe --enable-experimental-extension-apis

Caution: Don't depend on these experimental APIs. They might disappear, and they will change. Also, the Chrome Web Store doesn't allow you to upload items that use experimental APIs.

关于javascript - 如何更改 chrome ://flags using chrome API?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37764497/

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