kbin-kes icon indicating copy to clipboard operation
kbin-kes copied to clipboard

[MOD] Override default user popover action

Open aclist opened this issue 11 months ago • 0 comments

Browser

Firefox-based

Script manager

Tampermonkey

KES version

4.3.0-beta.8

Describe the add-on

The user popover dialog that appears when hovering and waiting on a username feels finicky because you have to wait longer than a second for the trigger to activate, then wait for the contents to be fetched, then the dialog spawns. Sometimes you don't intend to trigger a popover hover, but a cycle is wasted on fetching this information, and the dialog pops up anyway, and is rather large, to boot.

The proposed mod overrides the data-action property of user-inline elements to block the popover from spawning on hover.

Then, it adds an onclick action to these elements that opens a smaller, less obtrustive dialog with two buttons:

  • Open user profile page
  • Pop open user info dialog

This way, if you really want to open the popover, you can trigger the action immediately without having to wait for the onmouseover buffer period to elapse. And if you don't intend to open the popover dialog, you can still mouse over user links without having this dialog constantly cropping up. Thirdly, you can leave the mouse cursor at rest on the thread index and not worry about the popover occluding the view.

Speaking of this popover, an adjacent mod idea to this would be to have a mod that consolidates the contents of the popover window into something more compact. There is a lot of dead space there that could be tightened up.

aclist avatar Jan 30 '25 06:01 aclist