如要存取大部分的擴充功能 API 和功能,您必須在擴充功能的資訊清單中宣告權限。部分權限會觸發警告,使用者必須允許才能繼續使用擴充功能。
如要進一步瞭解權限的運作方式,請參閱「宣告權限」。如要瞭解使用含警告的權限的最佳做法,請參閱「權限警告規範」。
以下列出所有可用權限,以及特定權限觸發的任何警告。
"accessibilityFeatures.modify"- 讓擴充功能在使用
chrome.accessibilityFeaturesAPI 時修改無障礙功能狀態。
顯示的警告:變更無障礙設定。 "accessibilityFeatures.read"- 讓擴充功能在使用
chrome.accessibilityFeaturesAPI 時讀取無障礙狀態。
顯示的警告:讀取你的無障礙設定。 "activeTab"- 透過使用者手勢,授予對有效分頁的暫時存取權。詳情請參閱
activeTab。 "alarms"- 授予
chrome.alarmsAPI 存取權。 "audio"- 授予
chrome.audioAPI 存取權。 "background"- 讓 Chrome 提早啟動 (使用者登入電腦後,在啟動 Chrome 前),並延後關閉 (即使最後一個視窗關閉後,也要等到使用者明確關閉 Chrome)。
"bookmarks"- 授予
chrome.bookmarksAPI 存取權。
顯示的警告:閱讀及變更書籤。 "browsingData"- 授予
chrome.browsingDataAPI 存取權。 "certificateProvider"- 授予
chrome.certificateProviderAPI 存取權。 "clipboardRead"- 讓擴充功能使用網路平台 Clipboard API 貼上剪貼簿中的項目。
顯示的警告:讀取您複製並貼上的資料。 "clipboardWrite"- 讓擴充功能使用網路平台 Clipboard API 將項目剪下並複製到剪貼簿。
顯示的警告:修改您複製並貼上的資料。 "contentSettings"- 授予
chrome.contentSettingsAPI 存取權。
顯示的警告:變更設定來管理網站對 Cookie、JavaScript、外掛程式、地理位置、麥克風、相機等功能的存取權。 "contextMenus"- 授予
chrome.contextMenusAPI 存取權。 "cookies"- 授予
chrome.cookiesAPI 存取權。 "debugger"- 授予
chrome.debuggerAPI 存取權。
顯示的警告:
- 存取網頁偵錯工具後端。
- 讀取及變更你在所有網站上的所有資料。
"declarativeContent"- 授予
chrome.declarativeContentAPI 存取權。 "declarativeNetRequest"- 授予
chrome.declarativeNetRequestAPI 存取權。
顯示的警告:封鎖任何網頁所含內容。 "declarativeNetRequestWithHostAccess"- 授予
chrome.declarativeNetRequestAPI 存取權,但需要主機權限才能執行所有動作。 "declarativeNetRequestFeedback"- 授予權限,在使用
chrome.declarativeNetRequestAPI 時,將錯誤和警告寫入開發人員工具控制台。這項權限適用於未封裝的擴充功能,系統會忽略透過 Chrome 線上應用程式商店安裝的擴充功能。
顯示的警告:讀取您的瀏覽記錄。 "dns"- 授予
chrome.dnsAPI 存取權。 "desktopCapture"- 授予
chrome.desktopCaptureAPI 存取權。
顯示的警告:擷取螢幕畫面內容。 "documentScan"- 授予
chrome.documentScanAPI 存取權。 "downloads"- 授予
chrome.downloadsAPI 存取權。
顯示的警告:管理下載項目。 "downloads.open"- 允許使用
chrome.downloads.open()。
顯示的警告:管理下載項目。 "downloads.ui"- 允許使用
chrome.downloads.setUiOptions()。
顯示的警告:管理下載項目。 "enterprise.deviceAttributes"- 授予
chrome.enterprise.deviceAttributesAPI 存取權。 "enterprise.hardwarePlatform"- 授予
chrome.enterprise.hardwarePlatformAPI 存取權。 "enterprise.networkingAttributes"- 授予
chrome.enterprise.networkingAttributesAPI 存取權。 "enterprise.platformKeys"- 授予
chrome.enterprise.platformKeysAPI 存取權。 "favicon"- 授予 Favicon API 存取權。
顯示警告:瞭解您造訪網站的圖示。 "fileBrowserHandler"- 授予
chrome.fileBrowserHandlerAPI 存取權。 "fileSystemProvider"- 授予
chrome.fileSystemProviderAPI 存取權。 "fontSettings"- 授予
chrome.fontSettingsAPI 存取權。 "gcm"- 授予
chrome.gcm和chrome.instanceIDAPI 的存取權。 "geolocation"- 允許擴充功能使用地理位置 API,而無須向使用者索取權限。
顯示的警告:偵測您的實際位置。 "history"- 授予
chrome.historyAPI 存取權。
顯示的警告:讀取及變更所有已登入裝置上的瀏覽記錄。 "identity"- 授予
chrome.identityAPI 存取權。 "identity.email"- 透過
chrome.identityAPI 授予使用者的電子郵件地址存取權。
顯示的警告:請確認你的電子郵件地址。 "idle"- 授予
chrome.idleAPI 存取權。 "loginState"- 授予
chrome.loginStateAPI 存取權。 "management"- 授予
chrome.managementAPI 存取權。
顯示的警告:管理應用程式、擴充功能和主題。 "nativeMessaging"- 授予存取 原生訊息傳送 API 的權限。
顯示的警告:與合作原生應用程式建立連線。 "notifications"- 授予
chrome.notificationsAPI 存取權。
顯示警告:顯示通知。 "offscreen"- 授予
chrome.offscreenAPI 存取權。 "pageCapture"- 授予
chrome.pageCaptureAPI 存取權。
顯示的警告:讀取及變更你在所有網站上的所有資料。 "platformKeys"- 授予
chrome.platformKeysAPI 存取權。 "power"- 授予
chrome.powerAPI 存取權。 "printerProvider"- 授予
chrome.printerProviderAPI 存取權。 "printing"- 授予
chrome.printingAPI 存取權。 "printingMetrics"- 授予
chrome.printingMetricsAPI 存取權。 "privacy"- 授予
chrome.privacyAPI 存取權。
顯示的警告:變更隱私權相關設定。 "processes"- 授予
chrome.processesAPI 存取權。 "proxy"- 授予
chrome.proxyAPI 存取權。
顯示的警告:讀取及變更你在所有網站上的所有資料。 "readingList"- 授予
chrome.readingListAPI 存取權。
顯示的警告:讀取及變更閱讀清單中的項目。 "runtime"- 授予
runtime.connectNative()和runtime.sendNativeMessage()的存取權。runtime命名空間的所有其他功能則不需要權限。 "scripting"- 授予
chrome.scriptingAPI 存取權。 "search"- 授予
chrome.searchAPI 存取權。 "sessions"- 授予
chrome.sessionsAPI 存取權。
顯示的警告:
- 搭配
"history"權限使用時:讀取及變更您在所有已登入裝置上的瀏覽記錄。 - 搭配
"tabs"權限使用時:讀取您所有已登入裝置的瀏覽記錄。
- 搭配
"sidePanel"- 授予
chrome.sidePanelAPI 存取權。 "storage"- 授予
chrome.storageAPI 存取權。 "system.cpu"- 授予
chrome.system.cpuAPI 存取權。 "system.display"- 授予
chrome.system.displayAPI 存取權。 "system.memory"- 授予
chrome.system.memoryAPI 存取權。 "system.storage"- 授予
chrome.system.storageAPI 存取權。
顯示的警告:找出並取出儲存裝置。 "tabCapture"- 授予
chrome.tabCaptureAPI 存取權。
顯示的警告:讀取及變更你在所有網站上的所有資料。 "tabGroups"- 授予
chrome.tabGroupsAPI 存取權。
顯示的警告:查看及管理分頁群組。 "tabs"- 可存取多個 API 使用的分頁物件中的特權欄位,包括
chrome.tabs和chrome.windows。您通常不需要宣告此權限,即可使用這些 API。
顯示的警告:讀取您的瀏覽記錄。 "topSites"- 授予
chrome.topSitesAPI 存取權。
顯示警告:查看您最常造訪的網站清單。 "tts"- 授予
chrome.ttsAPI 存取權。 "ttsEngine"- 授予
chrome.ttsEngineAPI 存取權。
顯示的警告:使用合成語音朗讀所有文字。 "unlimitedStorage"- 為
chrome.storage.local、IndexedDB、Cache Storage和Origin Private File System提供無限制的配額。詳情請參閱「儲存空間和 Cookie」一文。 "userScripts"- 授予
chrome.userScriptsAPI 存取權。注意:使用者也必須明確啟用使用者指令碼。 "vpnProvider"- 授予
chrome.vpnProviderAPI 存取權。 "wallpaper"- 授予
chrome.wallpaperAPI 存取權。 "webAuthenticationProxy"- 授予
chrome.webAuthenticationProxyAPI 存取權。
顯示的警告:讀取及變更你在所有網站上的所有資料。 "webNavigation"- 授予
chrome.webNavigationAPI 存取權。
顯示的警告:讀取您的瀏覽記錄。 "webRequest"- 授予
chrome.webRequestAPI 存取權。 "webRequestBlocking"- 允許使用
chrome.webRequestAPI 進行封鎖。