Board Thread:General Discussion/@comment-5254530-20140406203815/@comment-26479628-20140412121025

importArticles( {     type: "script" ,      articles: [          "w:c:dev:UserTags/code.js"      ]  } ) ; window.UserTagsJS = { modules: <span class="br0" style="color:rgb(0,153,0);">{ <span class="br0" style="color:rgb(0,153,0);">} <span class="sy0" style="color:rgb(51,153,51);">, tags<span class="sy0" style="color:rgb(51,153,51);">: <span class="br0" style="color:rgb(0,153,0);">{ bureaucrat<span class="sy0" style="color:rgb(51,153,51);">: <span class="br0" style="color:rgb(0,153,0);">{ order<span class="sy0" style="color:rgb(51,153,51);">: <span class="nu0" style="color:rgb(204,0,0);">0 <span class="br0" style="color:rgb(0,153,0);">} <span class="sy0" style="color:rgb(51,153,51);">, sysop<span class="sy0" style="color:rgb(51,153,51);">: <span class="br0" style="color:rgb(0,153,0);">{ order<span class="sy0" style="color:rgb(51,153,51);">: <span class="nu0" style="color:rgb(204,0,0);">1 <span class="br0" style="color:rgb(0,153,0);">} <span class="sy0" style="color:rgb(51,153,51);">, council<span class="sy0" style="color:rgb(51,153,51);">: <span class="br0" style="color:rgb(0,153,0);">{ order<span class="sy0" style="color:rgb(51,153,51);">: <span class="nu0" style="color:rgb(204,0,0);">2 <span class="br0" style="color:rgb(0,153,0);">} <span class="br0" style="color:rgb(0,153,0);">} <span class="br0" style="color:rgb(0,153,0);">} <span class="sy0" style="color:rgb(51,153,51);">; UserTagsJS.<span class="me1" style="color:rgb(102,0,102);">modules .<span class="me1" style="color:rgb(102,0,102);">inactive <span class="sy0" style="color:rgb(51,153,51);">= <span class="nu0" style="color:rgb(204,0,0);">30 <span class="sy0" style="color:rgb(51,153,51);">; UserTagsJS.<span class="me1" style="color:rgb(102,0,102);">modules .<span class="me1" style="color:rgb(102,0,102);">newuser <span class="sy0" style="color:rgb(51,153,51);">= <span class="kw2" style="font-weight:bold;color:rgb(0,51,102);">true <span class="sy0" style="color:rgb(51,153,51);">; UserTagsJS.<span class="me1" style="color:rgb(102,0,102);">modules .<span class="me1" style="color:rgb(102,0,102);">autoconfirmed <span class="sy0" style="color:rgb(51,153,51);">= <span class="kw2" style="font-weight:bold;color:rgb(0,51,102);">true <span class="sy0" style="color:rgb(51,153,51);">; <span class="co1" style="font-style:italic;color:rgb(0,102,0);">// NOTE: bannedfromchat displays in Oasis but is not a user-identity group so must be checked manually UserTagsJS.<span class="me1" style="color:rgb(102,0,102);">modules .<span class="me1" style="color:rgb(102,0,102);">mwGroups <span class="sy0" style="color:rgb(51,153,51);">= <span class="br0" style="color:rgb(0,153,0);">[ <span class="st0" style="color:rgb(51,102,204);">'bureaucrat' <span class="sy0" style="color:rgb(51,153,51);">, <span class="st0" style="color:rgb(51,102,204);">'chatmoderator' <span class="sy0" style="color:rgb(51,153,51);">, <span class="st0" style="color:rgb(51,102,204);">'patroller' <span class="sy0" style="color:rgb(51,153,51);">, <span class="st0" style="color:rgb(51,102,204);">'rollback' <span class="sy0" style="color:rgb(51,153,51);">, <span class="st0" style="color:rgb(51,102,204);">'sysop' <span class="sy0" style="color:rgb(51,153,51);">, <span class="st0" style="color:rgb(51,102,204);">'bannedfromchat' <span class="sy0" style="color:rgb(51,153,51);">, <span class="st0" style="color:rgb(51,102,204);">'bot' <span class="sy0" style="color:rgb(51,153,51);">, <span class="st0" style="color:rgb(51,102,204);">'bot-global' <span class="sy0" style="color:rgb(51,153,51);">, <span class="st0" style="color:rgb(51,102,204);">'council' <span class="br0" style="color:rgb(0,153,0);">] <span class="sy0" style="color:rgb(51,153,51);">; <span class="sy0" style="color:rgb(51,153,51);">This code will get rid of the "Autoconfirmed User" tag. It will also show a user is inactive after 30 days, and give them a "New User" tag when they first start editing. This is used on the How I Met Your Mother wiki.