User:Arashiryuu0/wikia.js

// Masthead Rights; Custom Tags $(function { var rights = {}; rights['Arashiryuu0']          =['全王', '拳王', '人殺し合', '親分'];

if (typeof rights[wgTitle] != 'undefined') { info('mastheadRightsScript', 'Starting', '#ffcb6b'); // remove old rights $('.UserProfileMasthead .masthead-info span.tag').remove; for( var i=0, len=rights[wgTitle].length; i < len; i++) { // add new rights $(' ' + rights[wgTitle][i] +          ' ').appendTo('.masthead-info hgroup'); }    info('mastheadRightsScript', 'Done', '#ffcb6b'); } }); $(function { if(wgTitle === 'Arashiryuu0') { $('.tag:contains(全王)').addClass('zen-ou'); $('.tag:contains(拳王)').addClass('ken-ou'); $('.tag:contains(人殺し合)').addClass('murderer'); $('.tag:contains(親分)') .addClass('boss') .css({'color':'#89ddf3', 'text-shadow':'0 0 3px white'}); }   else return; }); // Fix forum's "Edit-topic" and "follow" buttons $(function { if(wgPageName.includes('Message_Wall') || wgPageName.includes('Thread')) { info('buttonFixScript', 'Starting', '#c94f12'); var fb = $('li.edit-topic'); fb.addClass('button'); fb.children.first.css({   'position':'relative',    'bottom':'3px',    'color':'white' }); $('.wikia-button.secondary').removeClass('secondary'); info('buttonFixScript', 'Done', '#c94f12'); } });

// info function function info(title, text, color) { if(!color || color === null || color === undefined || color === '') { return console.info('['+title+'] ' + text); } return console.info('%c['+title+']%c ' + text, 'color: ' + color, ''); }