User:SuperSajuuk/wikia.js

window.MessageWallUserTags = { tagColor: 'red', glow: false, glowSize: '15px', glowColor: '#f77', users: { 'UltimateSupreme': 'Sysop', 'Seelentau': 'Translator', '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));