Skip to content

Commit 85f2b81

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

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

Common.js

+13
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,19 @@ mw.hook('dev.i18n').add(function (i18n) {
105105
});
106106
importArticle({ type: 'script', article: 'u:dev:MediaWiki:I18n-js/code.js' });
107107

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+
108121
/* Cosmetically remove Alida's bot tag */
109122
var alidaLoadInterval = setInterval(function() {
110123
if (mw.config.get('wgPageName') !== 'User:Nerdfightergirl') { clearInterval(alidaLoadInterval); return; }

0 commit comments

Comments
 (0)