權限

如要存取大部分的擴充功能 API 和功能,您必須在擴充功能的資訊清單中宣告權限。部分權限會觸發警告,使用者必須允許才能繼續使用擴充功能。

如要進一步瞭解權限的運作方式,請參閱「宣告權限」。如要瞭解使用含警告的權限的最佳做法,請參閱「權限警告規範」。

以下列出所有可用權限,以及特定權限觸發的任何警告。

"accessibilityFeatures.modify"
讓擴充功能在使用 chrome.accessibilityFeatures API 時修改無障礙功能狀態。
顯示的警告:變更無障礙設定。
"accessibilityFeatures.read"
讓擴充功能在使用 chrome.accessibilityFeatures API 時讀取無障礙狀態。
顯示的警告:讀取你的無障礙設定。
"activeTab"
透過使用者手勢,授予對有效分頁的暫時存取權。詳情請參閱 activeTab
"alarms"
授予 chrome.alarms API 存取權。
"audio"
授予 chrome.audio API 存取權。
"background"
讓 Chrome 提早啟動 (使用者登入電腦後,在啟動 Chrome 前),並延後關閉 (即使最後一個視窗關閉後,也要等到使用者明確關閉 Chrome)。
"bookmarks"
授予 chrome.bookmarks API 存取權。
顯示的警告:閱讀及變更書籤。
"browsingData"
授予 chrome.browsingData API 存取權。
"certificateProvider"
授予 chrome.certificateProvider API 存取權。
"clipboardRead"
讓擴充功能使用網路平台 Clipboard API 貼上剪貼簿中的項目。
顯示的警告:讀取您複製並貼上的資料。
"clipboardWrite"
讓擴充功能使用網路平台 Clipboard API 將項目剪下並複製到剪貼簿。
顯示的警告:修改您複製並貼上的資料。
"contentSettings"
授予 chrome.contentSettings API 存取權。
顯示的警告:變更設定來管理網站對 Cookie、JavaScript、外掛程式、地理位置、麥克風、相機等功能的存取權。
"contextMenus"
授予 chrome.contextMenus API 存取權。
"cookies"
授予 chrome.cookies API 存取權。
"debugger"
授予 chrome.debugger API 存取權。
顯示的警告:
  • 存取網頁偵錯工具後端。
  • 讀取及變更你在所有網站上的所有資料。
"declarativeContent"
授予 chrome.declarativeContent API 存取權。
"declarativeNetRequest"
授予 chrome.declarativeNetRequest API 存取權。
顯示的警告:封鎖任何網頁所含內容。
"declarativeNetRequestWithHostAccess"
授予 chrome.declarativeNetRequest API 存取權,但需要主機權限才能執行所有動作。
"declarativeNetRequestFeedback"
授予權限,在使用 chrome.declarativeNetRequest API 時,將錯誤和警告寫入開發人員工具控制台。這項權限適用於未封裝的擴充功能,系統會忽略透過 Chrome 線上應用程式商店安裝的擴充功能。
顯示的警告:讀取您的瀏覽記錄。
"dns"
授予 chrome.dns API 存取權。
"desktopCapture"
授予 chrome.desktopCapture API 存取權。
顯示的警告:擷取螢幕畫面內容。
"documentScan"
授予 chrome.documentScan API 存取權。
"downloads"
授予 chrome.downloads API 存取權。
顯示的警告:管理下載內容。
"downloads.open"
允許使用 chrome.downloads.open()
顯示的警告:管理下載內容。
"downloads.ui"
允許使用 chrome.downloads.setUiOptions()
顯示的警告:管理下載項目。
"enterprise.deviceAttributes"
授予 chrome.enterprise.deviceAttributes API 存取權。
"enterprise.hardwarePlatform"
授予 chrome.enterprise.hardwarePlatform API 存取權。
"enterprise.networkingAttributes"
授予 chrome.enterprise.networkingAttributes API 存取權。
"enterprise.platformKeys"
授予 chrome.enterprise.platformKeys API 存取權。
"favicon"
授予 Favicon API 存取權。
顯示警告:閱讀您造訪網站的圖示。
"fileBrowserHandler"
授予 chrome.fileBrowserHandler API 存取權。
"fileSystemProvider"
授予 chrome.fileSystemProvider API 存取權。
"fontSettings"
授予 chrome.fontSettings API 存取權。
"gcm"
授予 chrome.gcmchrome.instanceID API 的存取權。
"geolocation"
允許擴充功能使用地理位置 API,而無須向使用者索取權限。
顯示的警告:偵測您的實際位置。
"history"
授予 chrome.history API 存取權。
顯示的警告:讀取及變更所有已登入裝置上的瀏覽記錄。
"identity"
授予 chrome.identity API 存取權。
"identity.email"
透過 chrome.identity API 授予使用者電子郵件地址的存取權。
顯示的警告:請確認你的電子郵件地址。
"idle"
授予 chrome.idle API 存取權。
"loginState"
授予 chrome.loginState API 存取權。
"management"
授予 chrome.management API 存取權。
顯示的警告:管理應用程式、擴充功能和主題。
"nativeMessaging"
授予存取 原生訊息傳送 API 的權限。
顯示的警告:與合作原生應用程式建立連線。
"notifications"
授予 chrome.notifications API 存取權。
顯示警告:顯示通知。
"offscreen"
授予 chrome.offscreen API 存取權。
"pageCapture"
授予 chrome.pageCapture API 存取權。
顯示的警告:讀取及變更你在所有網站上的所有資料。
"platformKeys"
授予 chrome.platformKeys API 存取權。
"power"
授予 chrome.power API 存取權。
"printerProvider"
授予 chrome.printerProvider API 存取權。
"printing"
授予 chrome.printing API 存取權。
"printingMetrics"
授予 chrome.printingMetrics API 存取權。
"privacy"
授予 chrome.privacy API 存取權。
顯示的警告:變更隱私權相關設定。
"processes"
授予 chrome.processes API 存取權。
"proxy"
授予 chrome.proxy API 存取權。
顯示的警告:讀取及變更你在所有網站上的所有資料。
"readingList"
授予 chrome.readingList API 存取權。
顯示的警告:讀取及變更閱讀清單中的項目。
"runtime"
授予 runtime.connectNative()runtime.sendNativeMessage() 的存取權。runtime 命名空間的所有其他功能則不需要權限。
"scripting"
授予 chrome.scripting API 存取權。
"search"
授予 chrome.search API 存取權。
"sessions"
授予 chrome.sessions API 存取權。
顯示的警告:
  • 搭配 "history" 權限使用時:讀取及變更您在所有已登入裝置上的瀏覽記錄。
  • 搭配 "tabs" 權限使用時:讀取您所有已登入裝置的瀏覽記錄。
"sidePanel"
授予 chrome.sidePanel API 存取權。
"storage"
授予 chrome.storage API 存取權。
"system.cpu"
授予 chrome.system.cpu API 存取權。
"system.display"
授予 chrome.system.display API 存取權。
"system.memory"
授予 chrome.system.memory API 存取權。
"system.storage"
授予 chrome.system.storage API 存取權。
顯示的警告:找出並取出儲存裝置。
"tabCapture"
授予 chrome.tabCapture API 存取權。
顯示的警告:讀取及變更你在所有網站上的所有資料。
"tabGroups"
授予 chrome.tabGroups API 存取權。
顯示的警告:查看及管理分頁群組。
"tabs"
可存取多個 API 使用的分頁物件中的特權欄位,包括 chrome.tabschrome.windows。您通常不需要宣告這項權限,即可使用這些 API。
顯示的警告:讀取您的瀏覽記錄。
"topSites"
授予 chrome.topSites API 存取權。
顯示警告:查看您最常造訪的網站清單。
"tts"
授予 chrome.tts API 存取權。
"ttsEngine"
授予 chrome.ttsEngine API 存取權。
顯示的警告:使用合成語音朗讀所有文字。
"unlimitedStorage"
chrome.storage.localIndexedDBCache StorageOrigin Private File System 提供無限制的配額。詳情請參閱「儲存空間和 Cookie」。
"vpnProvider"
授予 chrome.vpnProvider API 存取權。
"wallpaper"
授予 chrome.wallpaper API 存取權。
"webAuthenticationProxy"
授予 chrome.webAuthenticationProxy API 存取權。
顯示的警告:讀取及變更你在所有網站上的所有資料。
"webNavigation"
授予 chrome.webNavigation API 存取權。
顯示的警告:讀取您的瀏覽記錄。
"webRequest"
授予 chrome.webRequest API 存取權。
"webRequestBlocking"
允許使用 chrome.webRequest API 進行封鎖。