Closed darkred closed 3 years ago
You can implement the same via an additional userscript:
// ==UserScript==
// @name force :hover event in Firefox
// @match *://*/*
// @grant none
// @run-at document-start
// ==/UserScript==
if (!/chrom/i.test(navigator.userAgent)) {
addEventListener('load', () => {
const el = [...document.querySelectorAll(':hover')].pop();
if (el) {
const r = el.getBoundingClientRect();
el.dispatchEvent(new MouseEvent('mouseover', {
clientX: r.left,
clientY: r.top,
bubbles: true,
}));
}
}, {once: true});
}
Thank you so much !! I'm grateful !
(I added a !
in the outer if
)
Implements #34
Re-add https://github.com/tophf/mpiv/commit/a7cb177d887c119a9fde950692bd827b4ec9bd47 via its own setting disabled by default
If you agree to merge, I'll also add a wiki entry that: