Skip to content

Latest commit

 

History

History

sample.page-redder

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

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.