Content script

Content script is JS & CSS code that you inject into the web page.

Install

Create a new directory, cd into it and then run the below command.

npx ChromeKit-Org/cli init content-script

You will have 2 directories after you run the above command extension and cs-root.

cs-root directory has the react code that will be injected as content script into the web page.

cd cs-root
npm run watch

Last updated