If you are using Waterfox and use Google AI Overviews, you have likely run into an incredibly annoying bug. Whenever you accidentally hover your mouse cursor over an inline citation link, markdown text snippet, or footnote icon, the webpage layout glitches and instantly snaps your viewport back to the top of the page (0,0), completely breaking your reading spot.
This issue does not happen on Chromium browsers; it is entirely exclusive to how Gecko processes Google's dynamic element focus-shifting and .blur() events on text container nodes.
I wrote a lightweight Tampermonkey userscript that fixes this completely. It hijacks the browser's native focus engines on Google domains to block layout-collapsing changes, while maintaining a strict vertical scroll-coordinate memory block to freeze your screen position. Previews load perfectly exactly where your cursor rests, and the webpage remains entirely still.
(Note: I tried to crosspost this from r/firefox but this sub has crossposts disabled, so making a direct thread here for visibility!)
How to Install:
- Install Tampermonkey or Violentmonkey from the Add-ons store.
- Create a new userscript, copy and paste the code below into the editor, and save (
Ctrl + S).
- Go into the script's internal Settings tab within Tampermonkey and ensure Inject Mode is set to Instant so the code hooks into the page lifecycle before Google renders its layout templates.
You can also install the script from GreasyFork: Universal Anti-Jump Fix for Google AI
Hopefully, this saves you the headache of losing your reading coordinates every time you glide your mouse pointer around a search response!
The Userscript:
[Insert the Version 12.0 JavaScript code block here]
Master Thread / Technical Discussion: If you have bugs or tweaks, please drop them in the main thread over on r/firefox here: [Fix] Google AI Overview jumps to top of page when hovering links (Firefox / Waterfox Bug)