Open WebUI Context Menu 版本紀錄 - 3 個版本
Open WebUI Context Menu 作者: UnitedWeRide
Open WebUI Context Menu 版本紀錄 - 3 個版本
小心舊版本!這些版本只是提供來測試與參考用。您應該隨時用最新版的附加元件。
最新版本
版本 2.5
發行於 2025年11月10日 - 23.47 KB適用於 firefox 58.0 與更新版本OpenWebUI Context Menu – Version 2.5
HighlightsCustomizable Defaults: "Explain" and "Research" are now fully customizable custom menu items, giving users full control.
Automatic Migration: Existing prompts and settings convert automatically on update/import—no data loss.
Increased Limit: Max custom menu items raised to 10 for more flexibility.
Auto-Save & Debounced: Settings save instantly with debouncing to reduce storage writes. No manual save needed.
Enhanced URL Detection: Fixed incorrect youtube=true queries. Users choose source per item: Selected Text, Page URL, or Prefer Selected Text. Only one ID/URL sent to Open WebUI. Dynamic tooltips explain options in real time.
Auto-Scrolling: New menus scroll into view automatically.
Key Changes
Options UI (options.html + options.js)Removed “Explain” and “Research” prompt sections.
Deleted manual “Save Settings” button.
Added auto-save via saveSettings.
Implemented debouncing for performance.
Event listeners now trigger save on any change.
Removed "Save Item" button—items save instantly.
Enabled scrollIntoView() when adding new items.
Added migration logic to convert old prompts on load/import.
Max custom items increased to 10.
Background Script (background.js)Removed hardcoded default menu items.
Updated loadSettings to ignore legacy prompt fields; uses customContextMenus.
Refined onChanged listener to respond only to customContextMenus.
Simplified onClicked: now processes only custom items.
Improved extractYouTubeVideoId and extractLoadUrl: extract one ID/URL based on user preference. Prevents incorrect parameters.
Added per-menu source dropdowns in UI.
Dynamic tooltips explain each option with info icons.
User ExperienceAll changes saved instantly—no manual action needed.
"Settings saved!" toast confirms updates.
Cleaner, more intuitive interface: focus on customization without save steps.
Full control over all context menu items, including former defaults.
Backward CompatibilityExisting prompts migrate automatically on update.
Exported/imported settings convert legacy prompts during import.
All other features work as before.原始碼依照 MIT License 條款釋出
較舊版本
版本 2.1.0
發行於 2025年11月3日 - 21.87 KB適用於 firefox 58.0 與更新版本Changelog - Version 2.1.0
New Features- Increased Custom Context Menu Items: Expanded from 2 to 8 custom context menu items (total of 10 prompts)
- Dark Mode Toggle: Added a dark mode toggle switch beside the OpenWebUI Context Menu Settings title in options page
- Enhanced Export/Import Functionality: Improved handling for exporting and importing settings with up to 8 custom context menus
Improvements- User Experience: Better UI organization and clearer labeling of features
- Settings Management: Enhanced capability to manage more custom prompts and configurations
- Code Structure: Refactored code to support the increased number of custom menu items
Bug Fixes- Context Menu Limitation Issue: Fixed error that was preventing addition of second custom context menu item (now allows up to 8)
- Feature Toggle Saving: Fixed issue where feature toggles for custom context menu items were not being saved properly after page refresh
- Data Handling: Improved handling of settings data for all custom context menus during export/import operations
Breaking Changes
None - All existing functionality remains compatible with previous versions. Settings from v2.0 will be automatically migrated.
Notes
This update significantly expands the customization capabilities of the extension while maintaining full backward compatibility.原始碼依照 MIT License 條款釋出
版本 2.0.1
發行於 2025年10月18日 - 21.38 KB適用於 firefox 58.0 與更新版本OpenWebUI Context Menu – Version 2.0
Highlights- Custom Context Menu Items – Added ability to create unlimited custom context menu items with their own prompts and settings
- Rename Default Items – Users can now rename the default "Ask OpenWebUI (Prompt 1)" and "Ask OpenWebUI (Prompt 2)" menu items
- New "Add New" Button – Added a dedicated button in options to create new custom context menu items
- Maximum 2 Custom Items – Limit of 2 custom context menu items to maintain usability (total of 4 prompts: 2 defaults + 2 custom)
- Delete Functionality – Users can delete custom context menu items (default items cannot be deleted)
- Persistent Settings – All new features are saved in the existing settings structure and exported/imported with JSON
Options UI (options.html + options.js)- Added "Add New Context Menu Item" button to create custom prompts
- Custom context menus now have their own dedicated configuration section
- Each custom menu item has:
- Configurable title/name
- Custom prompt template
- Individual parameter settings (models, tools)
- Feature toggle settings (web-search, code-interpreter, etc.)
- Added delete functionality for custom items
- All existing functionality remains unchanged
Storage schema- No changes to core storage structure
- New
customContextMenusarray added to store custom menu configurations - Each custom menu item includes:
- Unique ID
- Title/name
- Prompt template
- Settings object with parameters and feature toggles
- Exported JSON now includes all custom context menus
User experience- Users can create up to 2 additional context menu items beyond the defaults
- Custom items appear in the right-click context menu alongside default items
- All settings are preserved when saving, exporting, or importing
- Default items cannot be deleted but can be renamed via their title field
Backward Compatibility- Existing installations will not be affected by this update
- All previous functionality continues to work exactly as before
- Exported settings from v2.0 can be imported into any future version that supports the format
原始碼依照 MIT License 條款釋出