Don't switch to ChatGPT (or alternative AI tabs) to do tasks related to other tabs, such as fixing grammar. With this Chrome extension, you can use AI and perform the necessary tasks in your current tab with a single click.
To run the current version of the extension, you need a Hugging Face Pro account and an API key. If you don't have one, you can use the free version of the API, but you need to change the baseURL and model in the background.js file to a free model that supports chat.
-
Clone the repo:
git clone https://github.com/MjMoshiri/ai-in-browser
-
install the dependencies:
npm install
-
Compile the project:
./compile.sh
-
Load the extension in to Chrome using this guide
There should be an item added to your context menu. For now, the model only has the "Correct Grammar" feature as it's my most common use case for the AI.
All files are located within the src directory:
background.js: Manages the context menu and communicates with the Hugging Face API.content.js: Handles communication with the current tab.options.jsandoptions.html: Manage extension settings, accessible via the extension popup.