A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/theme below:

theme - Mozilla | MDN

theme

Enables browser extensions to get details of the browser's theme and update the theme.

You can use this API to include a theme in your extension, which you define as a theme.Theme and apply using theme.update(). You cannot include a static theme in your extension, defined with the "theme" manifest key. The "theme" manifest key is used to define static themes only. See Themes on Extension Workshop for more information.

Types
theme.Theme

Represents the content of a theme.

Functions
theme.getCurrent()

Gets the current browser theme.

theme.update()

Updates the browser's theme.

theme.reset()

Removes any theme updates made in a call to theme.update().

Events
theme.onUpdated

Fired when the browser theme changes.

Example extensions Browser compatibility

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4