![]() You can use the proxy.onRequest event listener to intercept web requests, and return an object that describes whether and how to proxy them. privacyĪccess and modify various privacy-related browser settings. The pkcs11 API enables an extension to enumerate PKCS #11 security modules and to make them accessible to the browser as sources of keys and certificates. permissionsĮnables extensions to request extra permissions at runtime, after they have been installed. pageActionĪ page action is a clickable icon inside the browser's address bar. omniboxĮnables extensions to implement customized behavior when the user types into the browser's address bar. Because this API uses the operating system's notification mechanism, the details of how notifications appear and behave may differ according to the operating system and the user's settings. notificationsĭisplay notifications to the user, using the underlying operating system's notification mechanism. menusĪdd items to the browser's menu system. idleįind out when the user's system is idle, locked, or active. Use the identity API to get an OAuth2 authorization code or access token, which an extension can then use to access user data from a service that supports OAuth2 access (such as Google or Facebook). You can use these APIs to get localized strings from locale files packaged with your extension, find out the browser's current language, and find out the value of its Accept-Language header. i18nįunctions to internationalize your extension. Use the history API to interact with the browser history. findįinds text in a web page, and highlights matches. Some common types used in other WebExtension APIs. Get the Window object for your extension's pages. Get URLs to resources packages with your extension. eventsĬommon types used by APIs that dispatch events. You can use this API module to download files, cancel, pause, resume downloads, and show downloaded files in the file manager. downloadsĮnables extensions to interact with the browser's download manager. dnsĮnables an extension to resolve domain names. You can use this API to create Developer Tools pages, interact with the window that is being inspected, inspect the page network usage. devtoolsĮnables extensions to interact with the browser's Developer Tools. cookiesĮnables extensions to get and set cookies, and be notified when they change. Work with contextual identities: list, create, remove, and update contextual identities. Registering a content script instructs the browser to insert the given content scripts into pages that match the given URL patterns. Use this API to register content scripts. Listen for the user executing commands that you have registered using the commands manifest.json key. Currently the WebExtension clipboard API only supports copying images, but it's intended to support copying text and HTML in the future. The WebExtension clipboard API (which is different from the standard Clipboard API) enables an extension to copy items to the system clipboard. The user provides information or acts on the captive portal web page to gain broader access to network resources, such as accepting terms and conditions or making a payment. ![]() A captive portal is a web page displayed when a user first connects to a Wi-Fi network. captivePortalĭetermine the captive portal state of the user's connection. browsingDataĮnables extensions to clear the data that is accumulated while the user is browsing. Each property of this API is a types.BrowserSetting object, providing the ability to modify a particular setting. browserSettingsĮnables an extension to modify certain global browser settings. browserActionĪdds a button to the browser's toolbar. You can use it to bookmark pages, retrieve existing bookmarks, and edit, remove, and organize bookmarks. The WebExtensions bookmarks API lets an extension interact with and manipulate the browser's bookmarking system. ![]() This is like setTimeout() and setInterval(), except that those functions don't work with background pages that are loaded on demand. Schedule code to run at a specific time in the future. See below for a complete list of JavaScript APIs: actionĪdds a button to the browser's toolbar. Differences between API implementations.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |