File tree 1 file changed +3
-3
lines changed 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 27
27
function check ( ) {
28
28
let title = document . title ,
29
29
mail = document . querySelector ( ".mail-status" ) ,
30
- hasUnread = mail ? mail . classList . contains ( "unread" ) : false ;
30
+ hasUnread = mail ? ! mail . hidden : false ;
31
31
//
32
32
if ( ! / ^ \( \d + \) / . test ( title ) ) {
33
33
title = title . replace ( / ^ ( \( [ ^ ) ] + \) \s ) * / g, "" ) ;
49
49
GM_registerMenuCommand ( "Set GitHub Title Notification Indicator" , ( ) => {
50
50
const val = prompt ( "Indicator Value (it will be wrapped in parentheses)?" , indicator ) ;
51
51
if ( val !== null ) {
52
- GM_setValue ( "indicator" , indicator ) ;
52
+ GM_setValue ( "indicator" , val ) ;
53
53
check ( ) ;
54
54
}
55
55
} ) ;
56
56
GM_registerMenuCommand ( "Set GitHub Title Notification Interval" , ( ) => {
57
57
const val = prompt ( "Interval Value (in seconds)?" , interval ) ;
58
58
if ( val !== null ) {
59
- GM_setValue ( "interval" , interval ) ;
59
+ GM_setValue ( "interval" , val ) ;
60
60
setTimer ( ) ;
61
61
}
62
62
} ) ;
You can’t perform that action at this time.
0 commit comments