File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 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() {
668668function 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 }
You can’t perform that action at this time.
0 commit comments