File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 22
33## Version 0.27.2
441 . New color for <span class =" friend " >friends</span > in chat
5+ 1 . Fix game patches not turning into toasts
56
67## Version 0.27.1
781 . Fixed card skin shop names looking small
Original file line number Diff line number Diff line change @@ -9,18 +9,17 @@ onPage('', function patches() {
99 if ( settings . value ( 'underscript.season.disable' ) ) return ;
1010 eventManager . on ( ':loaded' , ( ) => {
1111 document . querySelectorAll ( '.infoIndex' ) . forEach ( ( el ) => {
12+ const patch = el . querySelector ( '[data-i18n-custom="home-patch-message"]' ) ;
13+ if ( ! patch ) return ;
1214 const text = $el . html . get ( el ) ;
13- const index = text . indexOf ( ' - ' ) ;
14- const version = text . substring ( 0 , index ) ;
15- if ( ! version ) return ;
15+ const version = patch . dataset . i18nArgs ;
1616 el . remove ( ) ;
1717 const key = `underscript.season.dismissed.${ version } ` ;
1818 fn . cleanData ( 'underscript.season.' , key ) ;
1919 if ( settings . value ( key ) ) return ;
2020 fn . dismissable ( {
21- key,
22- title : version ,
23- text : text . substring ( index + 3 ) ,
21+ key, text,
22+ title : `Undercards Update` ,
2423 } ) ;
2524 } ) ;
2625 } ) ;
You can’t perform that action at this time.
0 commit comments