NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
A Tampermonkey userscript that sends selected text from any webpage to ChatGPT as a prefilled prompt.
After selecting text on a webpage, right-click and choose Tampermonkey -> Ask ChatGPT with selected text. The script opens a new ChatGPT tab and places the selected text into the prompt box for you.
The script does not submit the message automatically. You can review, edit, or cancel the prompt before sending it yourself.
chatgpt-selection-asker.user.js, or create a new userscript in Tampermonkey and paste the file contents.Tampermonkey.Ask ChatGPT with selected text.For short selections, the script opens ChatGPT with the selected text in the URL query.
If the selected text is too long, the script temporarily stores the full text and opens ChatGPT with a one-time token in the URL fragment. Only that automatically opened ChatGPT tab can consume the stored text. This avoids browser or server errors such as HTTP ERROR 431 caused by overly long URLs.
Temporary text is cleared after it is successfully filled, after it expires, after the fallback flow copies it to the clipboard, or when a manually opened ChatGPT tab sees leftover temporary text without the matching token.
Ctrl+V manually.MIT
Rating: 0