User:Werner der Champ/common.js

//Replaces with the Username of the reader function replaceusername { var spantags = document.getElementsByTagName("span"); for (i=0; i<spantags.length; i++) { if (spantags[i].className=="insertusername") { if (wgUserName==null) { spantags[i].innerHTML="buddy"; } else { spantags[i].innerHTML=wgUserName; }   }  } } addOnloadHook(replaceusername);

window.UserTagsJS = { modules: {}, tags: { 'bureaucrat': { u: 'Bureaucrat', order: 1 ,}, 'sysop': { u: 'Admin', order: 2, link:'Ranks#Admins',}, 'vstf': { u: 'VSTF', link:'Help:VSTF',}, 'bot': { u: 'Bot-Konto', link:'Help:Bots',}, 'council2': { u: 'Council', order: 3, link:'Hilfe:Council'}, 'semiaktiv': { u: 'Inactive',}, 'bannedfromchat': { u: 'Banned from Chat', link:'Block'}, 'helper': { u: 'Helper', order: 3, link:'Hilfe:Wikia International',}, 'founder': { u: 'Founder', }, 'wikimoderator': { u: 'Super-Moderator', m: 'Super-Moderator', f: 'Super-Moderatorin', order: 4, link:'Clash of Clans Wiki:Super-Moderatoren',}, 'threadmoderator': { u: 'Discussion-Moderator', order: 3, link:'Ranks#Discussion_Moderators',}, 'chatmoderator': { u: 'Chat-Moderator', order: 5, link:'Ranks#Chat_Moderators',}, 'rollback': { u: 'Rollback', order: 6, link:'Ranks#Rollbacks',} } }; UserTagsJS.modules.mwGroups = [ 'bureaucrat', 'chatmoderator', 'wikimoderator', 'rollback', 'sysop', 'bannedfromchat', 'bot', 'bot-global', 'vstf' ]; UserTagsJS.modules.userfilter = { 'FranceSwitzerland': ['bureaucrat'] }; UserTagsJS.modules.metafilter = { 'chatmoderator': ['wikimoderator'], 'threadmoderator': ['wikimoderator'], 'rollback': ['wikimoderator'] }; UserTagsJS.modules.custom = { 'FranceSwitzerland': ['bot', 'semiaktiv'] };

importArticles({   type: 'script',    articles: [        'u:dev:MediaWiki:UserTags/code.js',        'u:dev:MediaWiki:AjaxRC/code.js',        'u:dev:MediaWiki:PurgeButton/code.js',    ] });