User:Arashiryuu0/global.js

PurgeButtonText = 'Purge';

importArticles({   type: 'script',    articles: [        'u:dev:DifferentSkinEditor/code.js',        'u:dev:Message/code.js',        'u:dev:PurgeButton/code.js',        'u:dev:RelatedDiscussionsModule/code.js',        'u:dev:YoutubeModal/code.js',        'u:dev:MediaWiki:View_Source/code.js',        'u:dev:UTCClock/code.js',        'u:dev:AjaxRC/code.js'        /*'w:c:admintools:MediaWiki:Wikia.js/editCount.js'*/    ] });

/* Auto Refresh */ AjaxRCRefreshText = 'Auto-refresh'; AjaxRCRefreshHoverText = 'Automatically refresh the page'; ajaxPages = [ 'Special:RecentChanges', 'Special:WikiActivity', 'Special:AllPages', 'Special:UncategorizedPages' ];

/*************************************************************************************************** *                                         STUFF                                                  * * *********************************************************************************************** */

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

// Material Theme SyntaxHighlight Stuff $(function {   function loop(_, e) {        var text = $(e).text,        word = getWord(text),        color = getColor(text);        if(word && color && !$(e).hasClass(word)) {            $(e).addClass(word).css(color);        }    }    function getWord(text) {        if(keywords[text]) {            return keywords[text];        }        return null;    }    function getColor(text) {        if(colors[text]) {            return colors[text];        }        return null;    }    var keywords = {        'prototype': 'prote',        'this': 'this',        'new': 'new',        '$': 'jQ',        '=>': 'aF'    },    colors = {        'prototype': { 'color':'#f78c6a' },        'this': { 'color':'#f95479' },        'new': { 'color':'#89ddf3' },        '$': { 'color':'#89ddf3' },        '=>': { 'color':'#c792ea' }    },    selectors = [        '.kw1',        '.kw4',        '.sy0'    ],    i = 0; for(i; i <= selectors.length; i++) { var elements = $('.javascript.source-javascript ' + selectors[i]); elements.each(loop); } });

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