Browser extensions are lightweight programs that attach to Chrome, Edge, Firefox or other browsers to change or extend what they do. Password managers and page translators are common examples.

How it works

An extension is built with HTML, CSS and JavaScript, the same ingredients as a website. The main file is the manifest, which lists the name, version and permissions.

JSON · manifest.json
{
  "manifest_version": 3,
  "name": "Meu Destaque",
  "version": "1.0",
  "permissions": ["activeTab", "scripting"],
  "action": { "default_popup": "popup.html" }
}

The most common pieces are:

  • popup: the little window that opens when you click the icon;
  • content script: code that runs inside the visited page and can read or change the content;
  • service worker: background code that reacts to events.

The declared permissions are shown to the user at install time. Only ask for what you need.

Practical example

A salesperson spends the day copying customer profile data into a spreadsheet. A simple extension can show a button on the page and send the data to the spreadsheet with one click.

An AI agent helps write the manifest and the content script. You test it by loading the folder in the browser's developer mode.

What it's for

  • Automate repetitive tasks on websites.
  • Add tools to your workflow, such as notes and screenshots.
  • Customize the appearance or behavior of pages.
  • Distribute a lightweight product directly through the extension store.

Security

Extensions can see what you do on pages, so they are a target for scams. Install only from trusted sources, read the permissions and be wary of extensions that ask for access to all sites without reason.

If you plan to publish one, follow the browser store rules, clearly explain what data you collect and avoid requesting permissions beyond what is necessary. This protects your users and increases the chances of approval in review.