ContextGPT is a Chrome extension that allows users to send selected text from any webpage to a specified API and display the response in a dialog box.
- Right-click context menu integration
- Custom API URL and API Key configuration
- Popup dialog for displaying API responses
- Options page for managing extension settings
- Clone this repository or download the source code.
- Open Google Chrome and navigate to
chrome://extensions
. - Enable "Developer mode" in the top right corner.
- Click "Load unpacked" and select the directory containing the extension files.
- Select text on any webpage.
- Right-click and choose "ContextGPT" from the context menu.
- The selected text will be sent to the configured API, and the response will be displayed in a popup dialog.
- Click on the extension icon in the Chrome toolbar.
- Click "Open Options" to access the options page.
- Enable or disable the extension using the checkbox.
- Enter your API URL and API Key.
- Click "Save" to apply the changes.
manifest.json
: Extension configurationbackground.js
: Background script for handling context menu and API requestscontent.js
: Content script for creating and managing the response dialogpopup.html
andpopup.js
: Extension popupoptions.html
andoptions.js
: Options page for configurationicon16.png
,icon48.png
,icon128.png
: Extension icons
Contributions are welcome! Please feel free to submit a Pull Request.
This project is open source and available under the MIT License.