File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# UnderScript Changelog
22
3- ## Version 0.23.7
3+ ## Version 0.24.0
4+ ### New Features
5+ 1 . Added setting to stop April Fools Day
6+
7+ ### Fixes
481 . Updated chat to account for @
591 . Fixed surrender button
610
Original file line number Diff line number Diff line change 1+ wrap ( function noFoolsHere ( ) {
2+ const setting = settings . register ( {
3+ name : 'Disable April Fools Jokes' ,
4+ key : 'underscript.disable.fishday' ,
5+ note : 'Disables *almost* everything.<br>Will require you to refresh the page.' ,
6+ } ) ;
7+ if ( setting . value ( ) ) {
8+ eventManager . on ( ':loaded' , ( ) => globalSet ( 'fish' , false ) ) ;
9+ }
10+ } ) ;
Original file line number Diff line number Diff line change @@ -3,3 +3,8 @@ function global(...key) {
33 if ( found === undefined ) throw new Error ( `[${ key . join ( ',' ) } ] does not exist` ) ;
44 return window [ found ] ;
55}
6+
7+ function globalSet ( key , value ) {
8+ if ( ! window . hasOwnProperty ( key ) ) throw new Error ( `[${ key } ] does not exist` ) ;
9+ window [ key ] = value ;
10+ }
You can’t perform that action at this time.
0 commit comments