View on GitHub

expunge-vt

Generate more expungements. Deliver more justice.

Getting Started with Chrome Extensions

The ExpungeVT Chrome Extension is located inside the ‘extensionDirectory’ folder in this repo. The following is a brief overview of the extension codebase with links to resources for further exploration.

Structure of an Extension

The structure of a chrome extension is primarily defined in the manifest.json file

manifest.json [Docs]: This file details the important information about your extension, like its name and which permissions it needs. Here are a few choice highlights, but review the official docs because this is the foundation of each chrome extension.

Common Extension Elements

Background Scripts

These are scripts that respond to Chrome Extension actions and triggers. They aren’t really visible to the user (..’cause they’re background scripts), but they provide some important types of behavior.

Extension Popup

This is the content that is displayed in a popup when you click on the extension icon to the right of the address bar. This is often used as kind of a navigation or dashboard to help users figure out what actions to take with the extension.

Content Scripts

These are scripts that are injected into other html pages. This is the primary way that you can add additional functionality to specific sites or types of pages.

Debugging Extensions (docs)

The dev tools can be used to inspect and debug an extension roughly same way they can be used on normal web content. There are of course some differences with extensions.

Read These Next