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: 2 months 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.
- Host: GitHub
- URL: https://github.com/swifthustle/rightclickgpt
- Owner: SwiftHustle
- License: apache-2.0
- Created: 2024-07-13T02:46:53.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-08-02T20:09:55.000Z (10 months ago)
- Last Synced: 2025-02-17T23:34:58.645Z (3 months ago)
- Topics: ai, artificial-intelligence, chatgpt, chatgpt-4, chrome, chrome-extension, context-menu, extension, right-click, right-click-menu, rightclickmenu
- Language: HTML
- Homepage:
- Size: 29.3 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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