feat: add advanced context actions and optional translation
This commit is contained in:
@@ -7,19 +7,59 @@ It uses no API key, custom server, or intermediary handler.
|
||||
This is an unofficial extension provided by Zavage Software Inc.
|
||||
|
||||
- [Firefox Add-ons listing](https://addons.mozilla.org/en-US/firefox/addon/search-with-chatgpt/)
|
||||
- [Project website](https://zavage-software.com/portfolio/search-with-ChatGPT)
|
||||
- [Project repository](https://git-repos.zavage.net/zavage-software/search-with-chatgpt-powered-by-openai-extension)
|
||||
- [Feedback or report a bug](https://zavage-software.com/contact-us)
|
||||
- [Zavage Software](https://zavage-software.com)
|
||||
|
||||
See `LICENSE.txt` for licensing terms.
|
||||
|
||||
## Ask about selected text
|
||||
|
||||
Highlight text on a webpage, right-click it, and choose **Ask ChatGPT**.
|
||||
ChatGPT opens with your selection. If the prompt is not sent automatically,
|
||||
press Enter in ChatGPT to send it. Try selecting a paragraph you want explained or
|
||||
translated.
|
||||
|
||||
You can also press **Alt+Shift+G** to use the current selection. With nothing
|
||||
selected, the shortcut opens a blank chat. Change the shortcut under
|
||||
**Manage Extension Shortcuts** in the `about:addons` gear menu.
|
||||
|
||||
The options panel shows your currently configured shortcut and refreshes when
|
||||
it changes or you return to the panel. If you remove it, the panel shows
|
||||
“No keyboard shortcut assigned”. Its **Change keyboard shortcut** button opens
|
||||
Firefox’s shortcut editor when supported; otherwise follow the menu path above.
|
||||
**Restore defaults** does not change your keyboard shortcut.
|
||||
|
||||
To customize the prompt, set **Prompt template** to something like
|
||||
`Explain simply: {query}` or `Translate into Spanish: {query}`. The Simple menu action, Ask normally, and the shortcut use your template.
|
||||
Other advanced actions use their own dedicated prompts.
|
||||
|
||||
## Search keyword and default engine
|
||||
|
||||
Open Firefox’s **Settings → Search**, or paste `about:preferences#search` into
|
||||
the address bar. Under **Search Shortcuts**, edit ChatGPT’s keyword to replace
|
||||
`gpt` with your preferred prefix. Under **Default Search Engine**, choose
|
||||
ChatGPT to search without a prefix, or choose your previous engine to switch
|
||||
back. See [Firefox’s search settings guide](https://support.mozilla.org/en-US/kb/change-your-default-search-settings-firefox)
|
||||
for illustrated instructions.
|
||||
|
||||
These are Firefox settings; the extension’s **Restore defaults** button does
|
||||
not change them.
|
||||
|
||||
## Options
|
||||
|
||||
Open `about:addons`, select this extension, and choose the **Options** tab
|
||||
(**Preferences** on macOS and Linux). Available settings:
|
||||
|
||||
- **Model** *(experimental)* — a model slug such as `auto`. ChatGPT may ignore
|
||||
it and use your account default; leave blank to always use the account
|
||||
default.
|
||||
- **Context menu** — **Simple** (default) keeps the direct selection action;
|
||||
**Advanced** offers contextual presets; **Off** hides the menu. The keyboard
|
||||
shortcut works in every mode. Existing enabled/disabled preferences migrate
|
||||
to Simple/Off. Changes apply without restarting Firefox.
|
||||
- **Show Translate in advanced menu** — off by default. When enabled, choose
|
||||
**Ask each time** for a language dialog, or enter a **Preferred language**
|
||||
to translate directly. An empty or invalid preferred language falls back to
|
||||
asking. Enter continues; Escape or Cancel opens nothing.
|
||||
- **Request a temporary chat** — asks ChatGPT not to save the conversation.
|
||||
ChatGPT may not honour this; check its own indicator before relying on it.
|
||||
- **Ask ChatGPT to use web search** — a hint to ChatGPT's interface, not a
|
||||
@@ -27,7 +67,23 @@ Open `about:addons`, select this extension, and choose the **Options** tab
|
||||
- **Open in** — a new tab, a new background tab, or a new window.
|
||||
- **Prompt template** — wraps your text, for example `Explain simply: {query}`.
|
||||
|
||||
These settings apply to the new entry points: selecting text and choosing
|
||||
Restore defaults resets extension preferences to Simple mode with translation
|
||||
hidden; it does not change Firefox's search engine or shortcut settings.
|
||||
|
||||
In Advanced mode, selected text offers **Ask normally**, **Explain**,
|
||||
**Summarize**, and **Debug code**. Translate appears only when enabled. The
|
||||
extension does not try to detect code. A selected link uses selection actions;
|
||||
without a selection, a link offers **Ask about this link** and **Review link
|
||||
safety**. Page background offers **Ask about this page** and **Summarize this
|
||||
page**. Link/page actions send only the URL. ChatGPT may be unable to access
|
||||
its content, and a link review is not a guarantee of safety.
|
||||
|
||||
Long selections require confirmation before sending shortened text. Link URLs
|
||||
are never shortened: unsupported schemes, embedded login credentials, and URLs
|
||||
that cannot fit are rejected. The extension does not simulate submission; ChatGPT controls whether a URL
|
||||
prompt is sent automatically or waits in the composer.
|
||||
|
||||
These settings apply to selecting text and choosing
|
||||
**Ask ChatGPT** from the right-click menu, or pressing
|
||||
<kbd>Alt</kbd>+<kbd>Shift</kbd>+<kbd>G</kbd>. Rebind the shortcut under
|
||||
**Manage Extension Shortcuts** in the Add-ons gear menu.
|
||||
@@ -40,17 +96,14 @@ Firefox 112 or newer. On older versions the extension still installs and the
|
||||
`gpt <query>` address-bar search still works; only these newer features are
|
||||
inactive.
|
||||
|
||||
## Why you press Enter twice
|
||||
## Sending your prompt
|
||||
|
||||
ChatGPT no longer submits prompts that are passed to it in a URL — it fills them
|
||||
into the composer and waits. So `gpt <query>` opens ChatGPT with your query
|
||||
filled in, and you press Enter there to send it.
|
||||
The extension opens ChatGPT with the prompt in the URL. ChatGPT controls what
|
||||
happens next: it may send the prompt automatically or leave it in the composer.
|
||||
**If the prompt is not sent automatically, press Enter in ChatGPT.**
|
||||
|
||||
This is a change OpenAI made to chatgpt.com, not a fault in this extension, and
|
||||
it is outside our control. It was a deliberate security measure: automatically
|
||||
running a prompt that arrived in a link let malicious links execute instructions
|
||||
in a signed-in ChatGPT session. The extra keypress is the checkpoint that
|
||||
prevents that. No API key, server, or intermediary is involved either way.
|
||||
The extension does not click Send, simulate Enter, or call ChatGPT's internal
|
||||
conversation API. This behavior can vary with changes to ChatGPT itself.
|
||||
|
||||
## Browser Support
|
||||
|
||||
@@ -92,8 +145,26 @@ reported to Zavage Software.
|
||||
- Your settings are stored in your own browser profile. If you use Firefox Sync
|
||||
with **Add-ons** enabled, they sync end-to-end encrypted through your own
|
||||
Mozilla account.
|
||||
- When you choose **Ask ChatGPT** or press the shortcut, the text you selected
|
||||
is placed in the chatgpt.com URL the extension opens for you. It goes nowhere
|
||||
else.
|
||||
- The extension reads a page's selected text only at the moment you invoke it,
|
||||
and never reads page addresses or titles.
|
||||
- Selection actions and the shortcut place your selected text in the ChatGPT
|
||||
URL. Advanced link/page actions instead place the chosen link or current
|
||||
page URL in the prompt. URLs may include private query parameters or fragments;
|
||||
use those actions only for URLs you want to share with ChatGPT.
|
||||
- The extension reads the selected text or relevant URL only when you invoke
|
||||
the action. It does not extract full page text, read page titles, or open a
|
||||
link itself for a safety check.
|
||||
- Language and confirmation dialogs hold pending content in memory only, not
|
||||
in settings sync or persistent storage. Canceling sends no prompt to ChatGPT.
|
||||
Closing or restarting Firefox discards pending actions.
|
||||
|
||||
## Model selection
|
||||
|
||||
Model selection is not currently supported. We tested model URL hints while
|
||||
signed in and signed out, but could not make them change the selected model.
|
||||
Signed-out testing used Luna; signed-in testing stayed on GPT-5.6 Sol with
|
||||
medium effort regardless of the requested model. We removed the model setting
|
||||
rather than offer a control that did not work. Choose your model and thinking
|
||||
effort in ChatGPT itself where available. Previously saved extension model
|
||||
values are ignored.
|
||||
|
||||
Temporary chat did work in manual testing. Check ChatGPT's temporary-chat
|
||||
indicator before sending; web-search hints remain unverified.
|
||||
|
||||
Reference in New Issue
Block a user