chrome-extensions-samples/functional-samples/sample.page-redder
Pasquale Riello c2f53bded9
Add README for bookmarks and page-redder samples (#1101)
* Add README.md

* Add README.md

* Update functional-samples/sample.bookmarks/README.md

Co-authored-by: Oliver Dunk <oliver@oliverdunk.com>

* Update functional-samples/sample.page-redder/README.md

Co-authored-by: Oliver Dunk <oliver@oliverdunk.com>

* Update functional-samples/sample.page-redder/README.md

Co-authored-by: Oliver Dunk <oliver@oliverdunk.com>

* Update functional-samples/sample.page-redder/README.md

Co-authored-by: Oliver Dunk <oliver@oliverdunk.com>

* Update functional-samples/sample.bookmarks/README.md

Co-authored-by: Joe Medley <jmedley@google.com>

* Update functional-samples/sample.bookmarks/README.md

Co-authored-by: Joe Medley <jmedley@google.com>

* Update functional-samples/sample.bookmarks/README.md

Co-authored-by: Joe Medley <jmedley@google.com>

* Update functional-samples/sample.bookmarks/README.md

Co-authored-by: Joe Medley <jmedley@google.com>

* Update functional-samples/sample.page-redder/README.md

Co-authored-by: Joe Medley <jmedley@google.com>

* Update functional-samples/sample.page-redder/README.md

Co-authored-by: Joe Medley <jmedley@google.com>

* Update functional-samples/sample.bookmarks/README.md

Co-authored-by: Oliver Dunk <oliver@oliverdunk.com>

* Update functional-samples/sample.page-redder/README.md

Co-authored-by: Oliver Dunk <oliver@oliverdunk.com>

---------

Co-authored-by: Oliver Dunk <oliver@oliverdunk.com>
Co-authored-by: Joe Medley <jmedley@google.com>
2024-02-27 17:52:48 +00:00
..
README.md Add README for bookmarks and page-redder samples (#1101) 2024-02-27 17:52:48 +00:00
manifest.json Switch to service worker (#924) 2023-05-22 09:41:06 -05:00
service-worker.js Switch to service worker (#924) 2023-05-22 09:41:06 -05:00

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.