File tree 1 file changed +13
-0
lines changed
1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -105,6 +105,19 @@ mw.hook('dev.i18n').add(function (i18n) {
105
105
} ) ;
106
106
importArticle ( { type : 'script' , article : 'u:dev:MediaWiki:I18n-js/code.js' } ) ;
107
107
108
+ /* Cosmetically remove Alida's bot tag */
109
+ var alidaLoadInterval = setInterval ( function ( ) {
110
+ if ( mw . config . get ( 'wgPageName' ) !== 'User:Nerdfightergirl' ) { clearInterval ( alidaLoadInterval ) ; return ; }
111
+
112
+ var userTags = document . querySelectorAll ( 'span.user-identity-header__tag' ) ;
113
+ if ( userTags ) {
114
+ for ( var index = 0 ; index < userTags . length ; index ++ ) {
115
+ if ( userTags [ index ] . innerText === "Bot" ) userTags [ index ] . remove ( ) ;
116
+ }
117
+ clearInterval ( alidaLoadInterval ) ;
118
+ }
119
+ } , 1000 ) ;
120
+
108
121
/* Cosmetically remove Alida's bot tag */
109
122
var alidaLoadInterval = setInterval ( function ( ) {
110
123
if ( mw . config . get ( 'wgPageName' ) !== 'User:Nerdfightergirl' ) { clearInterval ( alidaLoadInterval ) ; return ; }
You can’t perform that action at this time.
0 commit comments