chrome-extensions-samples/functional-samples/sample.page-redder
..
README.md
manifest.json
service-worker.js

README.md

Page Redder

This sample demonstrates how to use the chrome.action API to execute code when the extension icon is clicked.

Overview

This extension changes the background color of the active tab page (if its URL doesn't start with chrome://) to red when the extension icon is clicked.

Running this extension

  1. Clone this repository.
  2. Load this directory in Chrome as an unpacked extension.
  3. Navigate to any page (make sure that the URL doesn't start with chrome://).
  4. Click the extension icon.