![]() ![]() For example, you can use this API to enable users to upload files to your website. Use the chrome.fileBrowserHandler API to extend the Chrome OS file browser. Use the clarativeContent API to take actions depending on the content of a page, without requiring permission to read the page's content. Use the Debuggee tabId to target tabs with sendCommand and route events by tabId from onEvent callbacks. Use bugger to attach to one or more tabs to instrument network interaction, debug JavaScript, mutate the DOM and CSS, etc. The bugger API serves as an alternate transport for Chrome's remote debugging protocol. Use the okies API to query and modify cookies, and to be notified when they change. You can choose what types of objects your context menu additions apply to, such as images, hyperlinks, and pages. Use the ntextMenus API to add items to Google Chrome's context menu. More generally speaking, content settings allow you to customize Chrome's behavior on a per-site basis instead of globally. Use the ntentSettings API to change settings that control whether websites can use features such as cookies, JavaScript, and plugins. Use the commands API to add keyboard shortcuts that trigger actions in your extension, for example, an action to open the browser action or send a command to the extension. Use this API to expose certificates to the platform which can use these certificates for TLS authentications. Note that accessibilityFeatures.modify does not imply accessibilityFeatures.read permission. For modifying feature state, the extension needs accessibilityFeatures.modify permission. In order to get feature states the extension must request accessibilityFeatures.read permission. This API relies on the ChromeSetting prototype of the type API for getting and setting individual accessibility features. Use the chrome.accessibilityFeatures API to manage Chrome's accessibility features. Release information is not available for APIs before Chrome 42, which was released in early 2015. For more information, see Asynchronous methods. If you need to know the result of calling such methods, use the returned promise or pass a callback function into the method. Unless stated otherwise, methods in the chrome.* APIs are asynchronous: they return immediately, without waiting for the operation to finish. For example, chrome.alarms requires only the alarms permission, while chrome.action requires an action object in the manifest.json file. These fields are frequently permissions, but not always. Many APIs consist of a namespace and its related manifest fields. Chrome provides extensions with many special-purpose APIs such as chrome.alarms and chrome.action. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |