Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/swifthustle/rightclickgpt

RightClickGPT is a Chrome extension that allows you to quickly send selected text from a webpage to ChatGPT for explanations or other interactions. The extension provides a context menu option to send the selected text to a predefined ChatGPT chat.
https://github.com/swifthustle/rightclickgpt

ai artificial-intelligence chatgpt chatgpt-4 chrome chrome-extension context-menu extension right-click right-click-menu rightclickmenu

Last synced: 4 days ago
JSON representation

RightClickGPT is a Chrome extension that allows you to quickly send selected text from a webpage to ChatGPT for explanations or other interactions. The extension provides a context menu option to send the selected text to a predefined ChatGPT chat.

Awesome Lists containing this project

README

        

# RightClickGPT

RightClickGPT is a Chrome extension that allows you to quickly send selected text from a webpage to ChatGPT for explanations or other interactions. The extension provides a context menu option to send the selected text to a predefined ChatGPT chat.

## Features

- Right-click context menu integration.
- Configurable prompt format and ChatGPT chat ID.
- Option to use an existing ChatGPT tab if available.
- Popup for easy configuration of settings.

## Installation

1. Clone or download this repository to your local machine.
2. Open Chrome and navigate to `chrome://extensions/`.
3. Enable "Developer mode" by toggling the switch in the top right corner.
4. Click "Load unpacked" and select the directory containing the `RightClickGPT` extension files.
5. The RightClickGPT icon should appear in your Chrome toolbar.

## Usage

### Right-Click Context Menu

1. Select the text on any webpage that you want to send to ChatGPT.
2. Right-click on the selected text.
3. Click on the "Ask ChatGPT" option in the context menu.
4. The text will be sent to the configured ChatGPT chat.

### Popup Configuration Menu
(also available via extension options)

1. Click on the RightClickGPT icon in the Chrome toolbar to open the popup.
2. In the popup, you can:
- Enter a custom prompt format and include `` where you want the selected text to appear.
- Enter the ChatGPT chat ID.
- Toggle the option to focus on an existing ChatGPT tab if available.
3. Click "Save" to save your settings.

## Files

- `manifest.json`: The manifest file that defines the extension.
- `background.js`: The background script that handles context menu actions and tab management.
- `options.html`: The HTML file for the configuration page.
- `popup.html`: The HTML file for the configuration popup.
- `options.js`: The JavaScript file for handling popup interactions.
- `content.js`: The content script that interacts with the ChatGPT page (if needed).
- `logo16.png, logo48.png, logo128.png`: Extension Icons