User:Bryanston/global.js

var hasClass = ( function {	var reCache = {};	return function( element, className ) {		return ( reCache[className] ? reCache[className] : ( reCache[className] = new RegExp( "(?:\\s|^)" + className + "(?:\\s|$)" ) ) ).test( element.className );	}; }); importScriptPage('HideRail/code.js', 'dev'); importScriptPage('MediaWiki:RailgunClient.min.js', 'railgunscript'); importScriptPage('WHAM/code.js', 'dev'); importScriptPage('AjaxRC/code.js', 'dev'); importScriptPage('PurgeButton/code.js', 'dev'); importScriptPage('InactiveUsers/code.js', 'dev'); importArticles({   type: 'script',    articles: [        'u:wikimarks:Client.js'    ] }); importArticles({   type: "script",    articles: [        "w:c:dev:RevealAnonIP/usercode.js"    ] }); importArticles( {   type: 'script',    articles: [        // ...        'u:dev:CapsFirst/code.js',        // ...    ] } ); importArticles({   type: "script",    articles: [        "u:dev:ListFiles/code.js" // ListFiles from Dev Wiki    ] }); // Не могу в скрипты поэтому скопирую код с удалением одного элемента // $(document).ready(function { var badgesTpl = document.getElementById('badges'); if ((typeof badgesTpl !== "undefined") && (badgesTpl !== null)) { $("#badges").addClass("module"); $('#WikiaRail').prepend(badgesTpl); } });

// Adds an EditCount tab to the user namespace $(function {   var username = wgTitle.indexOf("Contributions/") != -1 ? wgTitle.replace("Contributions/", "") : wgTitle;    $('.tabs-container > ul.tabs').append('Editcount'); }); // END Adds an EditCount tab to the user namespace

// 05:53, January 26, 2012 (UTC) //