This folder has the test code to start a Chrome Extension for Spiffy.
This project uses Vite and crxjs to build the extension.
yarn
yarn build
- Navigate to chrome://extensions/
- Turn on the "Developer mode" toggle switch in the top right of the window
- Click the "Load unpacked" button in top left of the window
- Go to this folder (
extension
) and select thedist
directory to load the extension - Navigate to https://mail.google.com/ and open the console, you should see a welcome message (the Content Script React app)
- Go to extensions and click "Spiffy" to see the Spiffy Popup app.
- Open any reply box (console will say focus in/out), along with a "play" button (from the Content Script React app)
- If you type something, you will see characters in the console
- If you click the play button, you will see the text in the box printed out.
- Run
yarn build
. - Go to chrome://extensions/.
- Click on the refresh/reload icon on the Spiffy extension.
- Reload the https://mail.google.com/ tab.
The popup source code is at the root directory in src/PopupApp.tsx
.
The content script source code is in the content-script
directory, i.e. in src/content-script/ContentApp.tsx
.
Background script is empty right now, in src/background.js
.