GO-Ve01
ServicesDevelopersBooksDictionaryPapersWikidataEncyclopediaSearchBabelCareersDeck

What are extensions?

An extension adds features and functions to a browser. You create one using familiar web-based technologies: HTML, CSS, and JavaScript. An extension can use the same web APIs as JavaScript on a web page, but it also has access to an extra set of JavaScript APIs.

> [!NOTE]
> If you're already familiar with the basic extensions concepts, skip this section to [see how extension files are organized](/docs/Mozilla/Add-ons/WebExtensions/Anatomy_of_a_WebExtension). Then, use the [reference documentation](/docs/Mozilla/Add-ons/WebExtensions#reference) to start building your extension. Visit [Firefox Extension Workshop](https://extensionworkshop.com/?utm_source=developer.mozilla.org&utm_medium=documentation&utm_campaign=your-first-extension) to learn more about the workflow for developing, testing, publishing, and extensions for Firefox.

An extension adds features and functions to a browser. You create one using familiar web-based technologies: HTML, CSS, and JavaScript. An extension can use the same web APIs as JavaScript on a web page, but it also has access to an extra set of JavaScript APIs.

The extra set of JavaScript APIs, the [WebExtensions APIs](/docs/Mozilla/Add-ons/WebExtensions), is broadly compatible across the major browsers: Google Chrome, Apple Safari, Microsoft Edge, and Opera. Extensions written for Firefox will, in most cases, run on the other browsers with few, if any, [changes](https://extensionworkshop.com/documentation/develop/porting-a-google-chrome-extension/).

The WebExtensions APIs mean that you can do a lot more in an extension than you can with code in a web page. Here are just a few examples of the things you can do:

**Enhance or complement a website**: Use an extension to deliver additional in-browser features or information from your website. Allow users to collect details from pages they visit to enhance the service you offer.

Examples: [Enhancer for YouTube](https://addons.mozilla.org/en-US/firefox/addon/enhancer-for-youtube/) and [Control Panel for Twitter](https://addons.mozilla.org/en-US/firefox/addon/control-panel-for-twitter/).

![A YouTube video page with the Enhancer for YouTube control bar displayed below the video player. The pointer is over a control bar button, showing the Cinema mode tooltip.](enhancer_for_youtube.png)

**Let users show their personality**: Extensions can manipulate the content of web pages; for example, letting users add their favorite logo or picture as a background to every page they visit. Extensions may also enable users to update the look of the Firefox UI, as standalone [theme add-ons](https://extensionworkshop.com/documentation/themes/) do.

Examples: [Tabliss](https://addons.mozilla.org/en-US/firefox/addon/tabliss/), [Stylus](https://addons.mozilla.org/en-US/firefox/addon/styl-us/), and [Emoji](https://addons.mozilla.org/en-US/firefox/addon/emoji-sav/).

![A new tab styled by the Tabliss extension shows a picture with the time and a greeting message.](tabliss_new_tab.png)

**Add or remove content from web pages**: You can help users block intrusive ads, provide access to a travel guide whenever a page mentions a country or city, or reformat page content to offer a consistent reading experience. With the ability to access and update a page's HTML and CSS, extensions can help users see the web the way they want to.

Examples: [uBlock Origin](https://addons.mozilla.org/en-US/firefox/addon/ublock-origin/), [Return YouTube Dislike](https://addons.mozilla.org/en-US/firefox/addon/return-youtube-dislikes/), and [LeechBlock NG](https://addons.mozilla.org/en-US/firefox/addon/leechblock-ng/).

![uBlock Origin pop-up shows blocked tracker statistics.](ublock_origin_add_on.png)

**Add tools and new browsing features**: Add new features to a taskboard, or generate QR code images from URLs, hyperlinks, or page text. With flexible UI options and the power of the [WebExtensions APIs](/docs/Mozilla/Add-ons/WebExtensions), you can easily add new features to a browser. And, you can enhance almost any website's features or functionality; it doesn't have to be your website.

Examples: [Worldwide Radio](https://addons.mozilla.org/en-US/firefox/addon/worldwide-radio/), [Flagfox](https://addons.mozilla.org/en-US/firefox/addon/flagfox/), and [Tomato Clock](https://addons.mozilla.org/en-US/firefox/addon/tomato-clock/).

![The Worldwide Radio extension showing a list of radio stations for Canada, with one station selected to play.](worldwide_radio_extension.png)

**Games**: Offer traditional computer games with offline play features or explore new game possibilities, such as incorporating gameplay into everyday browsing.

Examples: [RPG Game - Dedalium by Loycom Games](https://addons.mozilla.org/en-US/firefox/addon/rpg-game-online-dedalium/), [Solitaire Card Game](https://addons.mozilla.org/en-US/firefox/addon/solitaire-spider-freecell/), and [Boxel 3D](https://addons.mozilla.org/en-US/firefox/addon/boxel-3d-game/).

![The Dedalium pop-up showing the Build your Network Guardian screen, with options to choose gear and create a character.](dedalium_popup.png)

**Add development tools**: You may provide web development tools as your business or have developed a useful technique or approach to web development that you want to share. Either way, you can enhance the built-in Firefox developer tools by adding a new tab to the developer toolbar.

Examples: [aXe Developer Tools](https://addons.mozilla.org/en-US/firefox/addon/axe-devtools/), [Web Developer](https://addons.mozilla.org/en-US/firefox/addon/web-developer/), and [Web React Developer Tools](https://addons.mozilla.org/en-US/firefox/addon/react-devtools/).

![The axe DevTools extension in the Firefox developer tools showing a summary of the accessibility issues found in a webpage, with the list of issues below.](axe_developer_tools_add_on.png)

If you have ideas or questions, you can reach us on the [Add-ons Discourse](https://discourse.mozilla.org/c/add-ons/35) or in the [Add-ons room](https://chat.mozilla.org/#/room/#addons:mozilla.org) on [Matrix](https://wiki.mozilla.org/Matrix).

## What's next?

- Walk through the development of an extension in [Your first extension](/docs/Mozilla/Add-ons/WebExtensions/Your_first_WebExtension).
- Learn about the structure of an extension in [Anatomy of an extension](/docs/Mozilla/Add-ons/WebExtensions/Anatomy_of_a_WebExtension).
- Try out some example extensions in [Example extensions](/docs/Mozilla/Add-ons/WebExtensions/Examples).

source: MDN Web Docs mirror · page

Cite this

"What are extensions?". MDN Web Docs. CC BY-SA 2.5 (MDN). https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/What_are_WebExtensions

JSON record · API collection · BibTeX · RIS · CSL-JSON · citation policy

Save to pass ·