MediaWiki:Wikia.js

importArticles({   type: "script",     articles: [         "w:c:creepypasta:MediaWiki:Wikia.js/username.js",        "w:c:creepypasta:MediaWiki:Wikia.js/title.js",        "w:c:creepypasta:MediaWiki:Wikia.js/alert.js",        "w:c:creepypasta:MediaWiki:Wikia.js/tags.js",        "w:c:creepypasta:MediaWiki:Wikia.js/blogs.js",        "w:c:creepypasta:MediaWiki:Wikia.js/IRC.js",        "w:c:creepypasta:MediaWiki:Wikia.js/Rating.js",        "w:c:dev:RelatedDiscussionsModule/code.js",      ] });

//Stuffs and things 'use strict'; var skin  = mw.config.get('skin'), action = mw.config.get('wgAction'), userName; function getUserName { var namespace = mw.config.get('wgNamespaceNumber'), title     = mw.config.get('wgTitle'), name; if (-1 < [2,3,500,501,1200].indexOf(namespace)) { name = decodeURIComponent(title.split(/\//).shift.replace(/<">/g, ''));           return encodeURIComponent(name.replace(/ /g, '_'));        }        return false;    }    if (!{oasis:1,wikia:1}[skin] || !{view:1,history:1,edit:1}[action]) return;    if ((userName = getUserName)) {        $(document.head || 'head').append('');        if (window.console && console.log) {            console.log('trying to load stylesheet "User:' + userName + '/sup.css"');        }    } }(mediaWiki, jQuery));
 * (function (mw, $) {