Skip to content

Chrome browser extension that adds functionalities to Gmail compose page

License

Notifications You must be signed in to change notification settings

spiffy-ai/gmail-compose-extension

Repository files navigation

Chrome Extension

This folder has the test code to start a Chrome Extension for Spiffy.

This project uses Vite and crxjs to build the extension.

Setup

Install dependencies

yarn

Build extension

yarn build

Load extension

  1. Navigate to chrome://extensions/
  2. Turn on the "Developer mode" toggle switch in the top right of the window
  3. Click the "Load unpacked" button in top left of the window
  4. Go to this folder (extension) and select the dist directory to load the extension
  5. Navigate to https://mail.google.com/ and open the console, you should see a welcome message (the Content Script React app)
  6. Go to extensions and click "Spiffy" to see the Spiffy Popup app.
  7. Open any reply box (console will say focus in/out), along with a "play" button (from the Content Script React app)
  8. If you type something, you will see characters in the console
  9. If you click the play button, you will see the text in the box printed out.

Reloading extension

  1. Run yarn build.
  2. Go to chrome://extensions/.
  3. Click on the refresh/reload icon on the Spiffy extension.
  4. 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

Background script is empty right now, in src/background.js.

About

Chrome browser extension that adds functionalities to Gmail compose page

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published