feat: add Ask ChatGPT toolbar action
This commit is contained in:
@@ -25,6 +25,12 @@ 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.
|
||||
|
||||
Click the extension’s **Ask ChatGPT** toolbar button to use selected text or,
|
||||
with nothing selected, open a blank chat. On pages Firefox does not allow
|
||||
extensions to read, the button opens a blank chat. You can pin the button to
|
||||
the toolbar from Firefox’s extensions menu. It uses your saved prompt and
|
||||
tab/window preferences, and works even when the context menu is Off.
|
||||
|
||||
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
|
||||
@@ -32,7 +38,7 @@ 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.
|
||||
`Explain simply: {query}` or `Translate into Spanish: {query}`. The Simple menu action, Ask normally, toolbar button, and shortcut use your template.
|
||||
Other advanced actions use their own dedicated prompts.
|
||||
|
||||
## Search keyword and default engine
|
||||
@@ -53,8 +59,8 @@ Open `about:addons`, select this extension, and choose the **Options** tab
|
||||
(**Preferences** on macOS and Linux). Available settings:
|
||||
|
||||
- **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
|
||||
**Advanced** offers contextual presets; **Off** hides the menu. The toolbar
|
||||
button and keyboard shortcut work 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**
|
||||
@@ -84,14 +90,14 @@ that cannot fit are rejected. The extension does not simulate submission; ChatGP
|
||||
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
|
||||
**Ask ChatGPT** from the right-click menu, clicking the toolbar button, or pressing
|
||||
<kbd>Alt</kbd>+<kbd>Shift</kbd>+<kbd>G</kbd>. Rebind the shortcut under
|
||||
**Manage Extension Shortcuts** in the Add-ons gear menu.
|
||||
|
||||
The `gpt <query>` address-bar search is unchanged and does not read these
|
||||
settings.
|
||||
|
||||
The options panel, the right-click item, and the keyboard shortcut require
|
||||
The options panel, toolbar button, right-click item, and keyboard shortcut require
|
||||
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.
|
||||
@@ -102,6 +108,10 @@ 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.**
|
||||
|
||||
If ChatGPT shows a verification error, try signing in and opening the prompt
|
||||
again. Signing in has helped in testing, but does not guarantee automatic
|
||||
submission.
|
||||
|
||||
The extension does not click Send, simulate Enter, or call ChatGPT's internal
|
||||
conversation API. This behavior can vary with changes to ChatGPT itself.
|
||||
|
||||
@@ -145,7 +155,7 @@ 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.
|
||||
- Selection actions and the shortcut place your selected text in the ChatGPT
|
||||
- Selection actions, the toolbar button, 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.
|
||||
|
||||
Reference in New Issue
Block a user