User:Arashiryuu0/wikia.js

// Masthead Rights; Custom Tags $(function { var rights = {}; rights['Arashiryuu0']          =['全王', '拳王', '人殺し合']; rights.ShadowBeast109           =['Administrator', 'Vampiric Overlord']; rights.Matsczon                 =['Bureaucrat', 'Duckman']; rights.Filename                 =['Emoji Dab Lad', 'Fallout: Las Vegas']; rights.IronChaos                =['Lad', 'One of The Boys', 'Ginger', 'TheseHands™']; rights.LaVey                    =['Administrator', 'All Seeing Eye']; 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');    } });

// 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'); $('.related-topics .related-topic').css({'background-color':'#201c10'}); info('buttonFixScript', 'Done', '#c94f12'); } });

/* Adding a faux-bio section to my user profile $(function { if(wgTitle === 'Arashiryuu0') {    return $('.details ul').append($('', { class: 'bio', id: 'bio-content' }).html(' Bio ' + 'お前はもう死んでいる'));  }   return; });

/* Test $( => {   const LRT = alert('This is a test.');    let x = prompt('Is this not JavaScript?'); }); /*********************************************************************************
 * Test Results                                                                **
 * Fandom does not support ES6 features, such as const, let, or arrow functions **
 * @return {null}                                                              **
 * @return {null}                                                              **
 * @return {null}                                                              **

$(function { if(wgTitle === 'Arashiryuu0') {    info('TagClassScript', 'Starting', '#ae0');    $('.tag:contains(\'全王\')').addClass('zen-ou');    $('.tag:contains(\'拳王\')').addClass('ken-ou');    info('TagClassScript', 'Finishing', '#ae0');    return $('.tag:contains(\'人殺し合\')').addClass('murderer');  } else  if(wgTitle === 'ShadowBeast109') {    info('TagClassScript', 'Starting', '#ae0');    $('.tag:contains(\'Administrator\')').addClass('admin');    info('TagClassScript', 'Finishing', '#ae0');    return $('.tag:contains(\'Vampiric Overlord\')').addClass('vamp');  } else  if(wgTitle === 'Matsczon') {    info('TagClassScript', 'Starting', '#ae0');    $('.tag:contains(\'Bureaucrat\')').addClass('crat');    info('TagClassScript', 'Finishing', '#ae0');    return $('.tag:contains(\'Duckman\')').addClass('duck');  } else  if(wgTitle === 'LaVey') {    info('TagClassScript', 'Starting', '#ae0'); $('.tag:contains(\'Administrator\')').addClass('admin'); info('TagClassScript', 'Finishing', '#ae0'); return $('.tag:contains(\'All Seeing Eye\')').addClass('eye'); } else if(wgTitle === 'Filename') { info('TagClassScript', 'Starting', '#ae0'); $('.tag:contains(\'Emoji Dab Lad\')').addClass('emoji-dab'); info('TagClassScript', 'Finishing', '#ae0'); return $('.tag:contains(\'Fallout: Las Vegas\')').addClass('las-vegas'); } else if(wgTitle === 'IronChaos') { info('TagClassScript', 'Starting', '#ae0'); $('.tag:contains(\'Lad\')').addClass('lad'); $('.tag:contains(\'One of The Boys\')').addClass('boys'); $('.tag:contains(\'Ginger\')').addClass('ginger'); info('TagClassScript', 'Finishing', '#ae0'); return $('.tag:contains(\'TheseHands™\')').addClass('these-hands'); } });

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

$(function {   if(wgTitle === 'Custom Armor Set Comparison' || wgTitle === 'Armor Piece Comparison') {        info('importScriptsCASC_APC', 'Starting', '#aaf');        var scripts = {};        scripts['Custom Armor Set Comparison']           =['MediaWiki:CustomArmorSet', 'MediaWiki:CustomArmorSetBox', 'MediaWiki:CustomArmorSetData'];        scripts['Armor Piece Comparison']                =['MediaWiki:CustomArmorSet', 'MediaWiki:CustomArmorSetBox', 'MediaWiki:CustomArmorSetData'];

if (typeof scripts[wgTitle] != 'undefined') { for( var i=0, len=scripts[wgTitle].length; i < len; i++) { $(' ', { id: 'importedScripts-'+[i], href: scripts[wgTitle][i], type: 'text/html' }).appendTo('head'); $(' ', { id: 'importedScripts-'+[i], src: scripts[wgTitle][i], type: 'text/html' }).appendTo('head'); }       }        info('importScriptsCASC_APC', 'Done', '#aaf'); }   if(wgTitle === 'Armor Piece Comparison') { importScript('MediaWiki:ArmorSearch.js'); } });

/***************************************************************************************
 * END                                         **
 * END                                         **