c2f53bded9
* 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> |
||
---|---|---|
.. | ||
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
- Clone this repository.
- Load this directory in Chrome as an unpacked extension.
- Navigate to any page (make sure that the URL doesn't start with
chrome://
). - Click the extension icon.