您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Greasy Fork is available in English.
Navigation hotkeys, message highlight, floating speaker, scroll protections, perfect collapse/expand handling, and enhanced edit scroll lock.
当前为
This script enhances the OpenRouter chat interface with advanced navigation features including hotkeys, and message highlighting. It aims to address limitations of the default web chat experience on openrouter.ai/chat through improvements of the user interaction experience by making navigation more intuitive and efficient.
The script enhances navigation in the OpenRouter chat interface with features like:
Features:
- Supports customizable modifier keys (`Alt`, `Ctrl`, or `None`) for navigation actions.
- Key bindings like `j`/`k` for moving to the next/previous message, `h`/`l` for expanding/collapsing messages, and `Home`/`End` for scrolling to the top/bottom of a message.
- The modifier key can be configured via a menu command.
- Highlights the currently active message with a visible outline and glow effect.
- Automatically updates the highlight based on scroll position (with anti-hysteresis to prevent flickering).
- Displays a floating panel at the top center showing the speaker's name and avatar when a message is highlighted.
- Enhances visibility of who is speaking without needing to scroll back to the message header.
- Adds a fixed panel at the bottom-right with buttons for navigation (previous/next message, top/bottom scroll, expand/collapse).
- Can be toggled on/off via a menu command.
- Responsive design adjusts for smaller screens.
- Prevents unintended scrolling away from a message during editing or input actions (e.g., paste, cut).
- Locks scroll position to the active message for a short duration after edits.
- Robust handling of message expansion/collapse with scroll position restoration to maintain visual context.
- Prevents jarring jumps when toggling message visibility.
- Ensures the scroll stays on the message being edited, preventing accidental navigation away during input.
- Uses `GM_setValue` and `GM_getValue` to save user preferences for modifier key and panel visibility.
- Provides tampermonkey menu options to configure the modifier key and toggle the navigation panel.