Skip to content

Commit 8997884

Browse files
committed
UnblockReview: handle recent CSS changes to {{Unblock}}
1 parent 497d3d0 commit 8997884

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

UnblockReview/main.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Many additional bugs fixed.
66
/* global importStylesheet */
77
// <nowiki>
88
( function () {
9-
const UNBLOCK_REQ_COLOR = 'rgb(235, 244, 255)';
9+
const UNBLOCK_REQ_COLOR = 'var(--background-color-progressive-subtle, #EBF4FF)';
1010
const DEFAULT_DECLINE_REASON = '{{subst:Decline reason here}}';
1111
const ADVERT = ' ([[User:Novem Linguae/Scripts/UnblockReview.js|unblock-review]])';
1212

@@ -28,7 +28,7 @@ Many additional bugs fixed.
2828
// look for user-block HTML class, which will correspond to {{Unblock}} requests
2929
const userBlockBoxes = document.querySelectorAll( 'div.user-block' );
3030
for ( let i = 0, n = userBlockBoxes.length; i < n; i++ ) {
31-
if ( userBlockBoxes[ i ].style[ 'background-color' ] !== UNBLOCK_REQ_COLOR ) {
31+
if ( userBlockBoxes[ i ].style.background !== UNBLOCK_REQ_COLOR ) {
3232
continue;
3333
}
3434

0 commit comments

Comments
 (0)