Skip to content

Commit b7c19fc

Browse files
committed
Fetch latest revision from URL
1 parent eb90053 commit b7c19fc

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

Common.js

+14-1
Original file line numberDiff line numberDiff line change
@@ -103,4 +103,17 @@ mw.hook('dev.i18n').add(function (i18n) {
103103
});
104104
});
105105
});
106-
importArticle({ type: 'script', article: 'u:dev:MediaWiki:I18n-js/code.js' });
106+
importArticle({ type: 'script', article: 'u:dev:MediaWiki:I18n-js/code.js' });
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);

0 commit comments

Comments
 (0)