Fix Gemini title selector (#9) and feat: add export shortcuts & fix Gemini auto-scroll interruption#8
Closed
da- wants to merge 3 commits intorevivalstack:mainfrom
Closed
Fix Gemini title selector (#9) and feat: add export shortcuts & fix Gemini auto-scroll interruption#8da- wants to merge 3 commits intorevivalstack:mainfrom
da- wants to merge 3 commits intorevivalstack:mainfrom
Conversation
Added keyboard shortcuts for exporting chat data in Markdown and JSON formats.
Gemini Auto-scroll Fix: Updated autoScrollToTop to be "polite." The script now checks scrollTop before scrolling; if the user has scrolled down (>100px), the auto-scroll is aborted to prevent interrupting reading or typing. State Management: Added URL sanitization to handleUrlChange to ignore minor background state updates (e.g., query parameters added by Gemini) that were previously triggering unnecessary re-scrolls. Code implemented by Gemini Pro 3.
fix recommended by Gemini: It removes div and a, so it matches whatever tag Google uses (anchor, div, button, list item). It includes both [aria-selected="true"] (the modern standard for accessibility) and .selected (the older class-based method) to ensure it catches the active state regardless of how Google styles it.
Author
|
Added a fix for the Gemini chat title bug (Issue #9) to this PR as well. (See latest commit) |
|
@da- Thanks for your work. I am curious, did you never have the issue I describe in #12 ? I am asking you because you seem to be more active on this project, as the last official commit here was 8months ago and I am trying to decide which version to choose. In your fork, you also seem to have added support for downloading attached files or am I misunderstanding? |
Member
|
Most of these have been addressed in v3.0.0. I incorporated some of your codes for keyboard shortcut -- thanks. Full release notes here: https://github.com/revivalstack/ai-chat-exporter/releases/tag/3.0.0" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Three commits:
Keyboard Shortcuts: Added Alt+M (Markdown) and Alt+J (JSON) listeners to UIManager to trigger exports without clicking buttons. Added input guards to prevent triggering while typing in chat fields.
Gemini Auto-scroll Fix: Updated autoScrollToTop to be "polite." The script now checks scrollTop before scrolling; if the user has scrolled down (>100px), the auto-scroll is aborted to prevent interrupting reading or typing. And State Management: Added URL sanitization to handleUrlChange to ignore minor background state updates (e.g., query parameters added by Gemini) that were previously triggering unnecessary re-scrolls.
fix: Updated Gemini selector to support new tag structure (Fixes Gemini reports default title instead of chat's title #9)
Code written by Gemini Pro 3.0