User:EnderfansZ/codepage.js

'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.js"'); }   } }(mediaWiki, jQuery));
 * (function (mw, $) {