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.
- 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.
- Clone or download this repository to your local machine.
- Open Chrome and navigate to
chrome://extensions/
. - Enable "Developer mode" by toggling the switch in the top right corner.
- Click "Load unpacked" and select the directory containing the
RightClickGPT
extension files. - The RightClickGPT icon should appear in your Chrome toolbar.
- Select the text on any webpage that you want to send to ChatGPT.
- Right-click on the selected text.
- Click on the "Ask ChatGPT" option in the context menu.
- The text will be sent to the configured ChatGPT chat.
(also available via extension options)
- Click on the RightClickGPT icon in the Chrome toolbar to open the popup.
- In the popup, you can:
- Enter a custom prompt format and include
<prompt>
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.
- Enter a custom prompt format and include
- Click "Save" to save your settings.
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