File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 1
1
// ==UserScript==
2
2
// @name UnityForumFixer
3
3
// @namespace https://unitycoder.com/
4
- // @version 0.85 (27.04.2025)
4
+ // @version 0.86 (27.04.2025)
5
5
// @description Fixes For Unity Forums - https://github.com/unitycoder/UnityForumFixer
6
6
// @author unitycoder.com
7
7
// @match https://discussions.unity.com/latest
@@ -668,18 +668,19 @@ function replaceNotificationIcons() {
668
668
function AddOnHoverOpenNotificationPanel ( ) {
669
669
const currentUserButton = document . getElementById ( 'toggle-current-user' ) ;
670
670
const headerArea = document . getElementById ( 'main-outlet' ) ;
671
- const dropdown = document . querySelector ( '.user-menu.revamped.menu-panel.drop-down' ) ;
672
671
673
672
if ( currentUserButton && headerArea ) {
674
673
// Open the panel on hover over the user button
675
674
currentUserButton . addEventListener ( 'mouseenter' , ( ) => {
675
+ const dropdown = document . querySelector ( '.user-menu.revamped.menu-panel.drop-down' ) ;
676
676
if ( ! dropdown ) {
677
677
currentUserButton . click ( ) ;
678
678
}
679
679
} ) ;
680
680
681
681
// Close the panel when mouse moves over the header area
682
682
headerArea . addEventListener ( 'mouseenter' , ( ) => {
683
+ const dropdown = document . querySelector ( '.user-menu.revamped.menu-panel.drop-down' ) ;
683
684
if ( dropdown ) {
684
685
currentUserButton . click ( ) ; // Simulate click outside to close
685
686
}
You can’t perform that action at this time.
0 commit comments