@@ -8,6 +8,7 @@ Many additional bugs fixed.
88( async function ( ) {
99 const UNBLOCK_REQ_COLOR_PRE_2025 = 'rgb(235, 244, 255)' ;
1010 const UNBLOCK_REQ_COLOR_POST_2025 = 'var(--background-color-progressive-subtle, #EBF4FF)' ;
11+ const UNBLOCK_SPAMUN_COLOR = 'var(--background-color-progressive-subtle, #f1f4fd)' ;
1112 const DEFAULT_DECLINE_REASON = '{{subst:Decline reason here}}' ;
1213 const ADVERT = ' ([[User:Novem Linguae/Scripts/UnblockReview.js|unblock-review]])' ;
1314
@@ -30,16 +31,15 @@ Many additional bugs fixed.
3031 const userBlockBoxes = document . querySelectorAll ( 'div.user-block' ) ;
3132 for ( let i = 0 , n = userBlockBoxes . length ; i < n ; i ++ ) {
3233 if (
33- userBlockBoxes [ i ] . style [ 'background-color' ] !== UNBLOCK_REQ_COLOR_PRE_2025 &&
34- userBlockBoxes [ i ] . style . background !== UNBLOCK_REQ_COLOR_POST_2025
34+ userBlockBoxes [ i ] . style [ 'background-color' ] === UNBLOCK_REQ_COLOR_PRE_2025 ||
35+ userBlockBoxes [ i ] . style . background === UNBLOCK_REQ_COLOR_POST_2025 ||
36+ userBlockBoxes [ i ] . style . background === UNBLOCK_SPAMUN_COLOR
3537 ) {
36- continue ;
38+ // We now have a pending unblock request - add UI
39+ const unblockDiv = userBlockBoxes [ i ] ;
40+ const [ container , hrEl ] = addTextBoxAndButtons ( unblockDiv ) ;
41+ await listenForAcceptAndDecline ( container , hrEl ) ;
3742 }
38-
39- // We now have a pending unblock request - add UI
40- const unblockDiv = userBlockBoxes [ i ] ;
41- const [ container , hrEl ] = addTextBoxAndButtons ( unblockDiv ) ;
42- await listenForAcceptAndDecline ( container , hrEl ) ;
4343 }
4444 } ) ;
4545 }
0 commit comments