/wordsPopup

chrome extension to count the total number of times any word in a list appears on a webpage and to highlight them in yellow.

Primary LanguageJavaScriptMIT LicenseMIT

Code for counting and highlighting target words on a web page using a Chrome extension.

Target words are listed in content-script.js in the following line

const targetWords = ['must', 'slashdot'];

Installation

Make sure the Chrome extension has been installed and pinned.

Usage

Click on the W in the upper right corner of your browser (circled in red in the screenshot below)

image

Select Count and highlight target words via content-script.js

image

The pop up will show the word counts in the pop up window. After clicking OK the target words will be highlighted in yellow.

Select Copy a query for ChatGPT into the clipboard using Inject function in popup.js The pop up will copy a query for ChatGPT based on the article. You will need to manually paste the query into ChatGPT as the OpenAI API is behind a pay wall.

References