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.43.0 (2020-12-05)
4+ ### New Features
5+ 1 . Added button to show your friend rankings on the leaderboard
6+ 1 . Added setting to disable friend request notifications
7+ 1 . Added option to show "breaking" art as "full" art
8+ ### Fixes
9+ 1 . Fix page selection on leaderboard
10+ 1 . Loading user links on leaderboard now load correctly
11+ 1 . Fix deleting friends without reloading page
12+ 1 . Error when loading deck correctly exits
13+ ### Plugins
14+ 1 . Added "eventManager.once(event, function)"<extended > - Listens to event once</extended >
15+ 1 . Added "eventManager.until(event, function)"<extended > - Listens to event until returns truthy</extended >
16+
317## Version 0.42.0 (2020-11-01)
418### New Features
5191 . Added setting to ignore pings from closed chats
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ const changelog = wrap(function changelog() {
44 style . add (
55 '.us-changelog h2 { font-size: 24px; }' ,
66 '.us-changelog h3 { font-size: 20px; }' ,
7- 'extended { display: block ; }' ,
7+ 'extended { display: contents ; }' ,
88 ) ;
99 function getMarkdown ( ) {
1010 if ( ! changelog . markdown ) {
Original file line number Diff line number Diff line change @@ -115,6 +115,15 @@ wrap(() => {
115115 }
116116 return emitter . on ( event , wrapper ) ;
117117 } ,
118+ until : ( event , fn ) => {
119+ if ( typeof fn !== 'function' ) return emitter ;
120+ function wrapper ( ...args ) {
121+ if ( fn ( ...args ) ) {
122+ off ( event , wrapper ) ;
123+ }
124+ }
125+ return emitter . on ( event , wrapper ) ;
126+ } ,
118127 emit : ( event , ...data ) => {
119128 if ( data . length === 2 && data [ 1 ] === true ) {
120129 console . error ( 'Deprecation Warning: emit argument "cancelable" is deprecated. Use `.cancelable.emit()` instead!' ) ;
You can’t perform that action at this time.
0 commit comments