User:Pio387/global.js

importScriptPage('User:Wedkarski/chatpack.js', 'wedkarski'); importScriptPage('WHAM/code.js', 'dev'); importScriptPage('PortableCSSPad/code.js', 'dev');

$( function {	if ( !document.getElementById( 'ca-skins' ) ) {		$( 'Monobook ' ).appendTo( '#GlobalNavigation' );	} } );

/* Borrowed from Baakamono (http://community.wikia.com/wiki/User:Baakamono/global.js?oldid=779649) */

window.wgEnableImageLightboxExt = false; function changeimagelinks { $('#WikiaArticle, .LatestPhotosModule, #article-comments').unbind('click.lightbox'); var a = document.getElementsByTagName('a'); for(var t = 0; t < a.length; ++t) { var a2 = a[t]; var img = a2.getElementsByTagName('img'); if(img[0] != null) { if (a2.href.indexOf('images.wikia.com') != -1) { var link = wgServer + '/wiki/File:' + a2.href.substring(a2.href.lastIndexOf('/') + 1); a2.setAttribute('href',link); }		}	} } addOnloadHook(changeimagelinks);

$.ready( function {

$('a[data-canonical="wikiactivity"]').attr('href','/wiki/Special:RecentChanges').attr('title','Recent Changes').html('Ostatnie zmiany')

});