User:SuperSajuuk/wikia.js

// This code tags people on the forums so they can be identified. Temporary until it's added in common.js window.MessageWallUserTags = { tagColor: 'red', glow: false, glowSize: '15px', glowColor: '#f77', users: { 'UltimateSupreme': 'Sysop, Coder', 'Seelentau': 'Translator, Forum Moderator', 'SuperSajuuk': 'Forum Moderator', 'Ten_Tailed_Fox': 'Sysop', 'Snapper2': 'Sysop', 'FF-Suzaku': 'Translator' } }; (function($, config) {   //Setup configuration options, internal variables, and default values:    var tagColor = config.tagColor || 'red',        glow = config.glow || true, //Text-shadow effect: true/false        glowColor = config.glowColor || '#f77',        glowSize = config.glowSize || '20px', //Text-shadow size in pixels        users = config.users || {}, //List of users to tag and what the tag will say        txtShadow = ''; //Internal text shadow variable — nothing by default    //Set the size and color of the text shadow if it's enabled    if (glow === true) {        txtShadow = '0 0 ' + glowSize + ' ' + glowColor;    }    //Main function    function init {        for (var name in users) {            $('a.subtle[href$="User_talk:' + name + '"]')                .after(' (' + users[name] + ') ');            $('.MessageWallUserTag').css({ color: tagColor, marginLeft: '-2px', fontFamily: 'arial', fontSize: '10px', textShadow: txtShadow, verticalAlign: 'top' });       }    }    init; }(jQuery, window.MessageWallUserTags));