如何添加条目 Google Chrome 全屏异常 javascript?

How to add entry to Google Chrome fullscreen exceptions with javascript?

我想以编程方式将 'exception' 条目添加到 chrome 的隐私-全屏设置中吗?此设置可在此处找到: chrome://settings/contentExceptions#fullscreen

我查看了 chrome 文档,但找不到解决方案: https://developer.chrome.com/extensions/privacy

谢谢!

你看错了API。这不是 隐私 设置,它受 chrome.contentSettings API.

约束
// Requires "contentSettings" permission
chrome.contentSettings.fullscreen.set({
  primaryPattern: "*://*.example.com/*",
  setting: "allow"
});