

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.
Firefox webextension replace gbrowser update#
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.
Firefox webextension replace gbrowser code#
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.
