mirror of
https://github.com/GoogleChrome/chrome-extensions-samples.git
synced 2026-03-27 13:29:34 +07:00
* Added readme for tutorial.reading-time * Added README.md for tutorial.readingtime * Added README.md for tutorial.readingtime * Added README.md for tutorial.readingtime * Delete functional-samples/tutorial.reading-time/images/README.md * Update README.md
Tutorial: Run scripts on every page
This sample demonstrates how to run scripts on any Chrome extension and Chrome Web Store documentation page using an extension called Reading Time.
Overview
This sample demonstrates how developers can use content scripts which employ Document Object Models to read and change the content of a page. In this instance, the extension checks to find an article element, counts all the words inside of it, and then creates a paragraph that estimates the total reading time for that article.
Running this extension
- Clone this repository.
- Load this directory in Chrome as an unpacked extension.
- Navigate to a Chrome extension or Chrome Webstore documentation page with an article element. Here is an example of a webpage with an article element.
- The extension will provide an estimated reading time for the text in that article element. Here is the link for the full instructions.