Skip to content

Commit 7da4f8b

Browse files
authored
Update unity-forum-fixer.js
fix mouseout
1 parent 5b0a100 commit 7da4f8b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

‎unity-forum-fixer.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// ==UserScript==
22
// @name UnityForumFixer
33
// @namespace https://unitycoder.com/
4-
// @version 0.85 (27.04.2025)
4+
// @version 0.86 (27.04.2025)
55
// @description Fixes For Unity Forums - https://github.com/unitycoder/UnityForumFixer
66
// @author unitycoder.com
77
// @match https://discussions.unity.com/latest
@@ -668,18 +668,19 @@ function replaceNotificationIcons() {
668668
function AddOnHoverOpenNotificationPanel() {
669669
const currentUserButton = document.getElementById('toggle-current-user');
670670
const headerArea = document.getElementById('main-outlet');
671-
const dropdown = document.querySelector('.user-menu.revamped.menu-panel.drop-down');
672671

673672
if (currentUserButton && headerArea) {
674673
// Open the panel on hover over the user button
675674
currentUserButton.addEventListener('mouseenter', () => {
675+
const dropdown = document.querySelector('.user-menu.revamped.menu-panel.drop-down');
676676
if (!dropdown) {
677677
currentUserButton.click();
678678
}
679679
});
680680

681681
// Close the panel when mouse moves over the header area
682682
headerArea.addEventListener('mouseenter', () => {
683+
const dropdown = document.querySelector('.user-menu.revamped.menu-panel.drop-down');
683684
if (dropdown) {
684685
currentUserButton.click(); // Simulate click outside to close
685686
}

0 commit comments

Comments
 (0)