User:Hyperborean/global.js

importScriptPage('User:Monchoman45/ChatHacks.js', 'c'); importScriptPage('User:Joeytje50/ChatPMs.js', 'c'); importScriptPage('MediaWiki:Common.js/displayClock.js', 'admintools'); importScriptPage('AntiUnicruft/code.js', 'dev'); importScriptPage('RevealAnonIP/usercode.js', 'dev'); importScriptPage( 'AjaxUndo/code.js', 'dev' );

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);

$( function {	if ( !document.getElementById( 'ca-skins' ) ) {		if ( skin === 'oasis' || skin === 'wikia' ) {			$( 'MB' ).appendTo( '#AccountNavigation' ); $( 'WM' ).appendTo( '#AccountNavigation' );		} else {			$( 'Oasis' ).appendTo( '#p-cactions > .pBody > ul' ); $( 'Mobile' ).appendTo( '#p-cactions > .pBody > ul' );		} 	} } );

jQuery(function($) {   "use strict";    var mw = window.mediaWiki || { config: { get: function(p) { return window[p]; } } };    if (mw.config.get('wgCanonicalSpecialPageName') !== 'WikiActivity') return;    var pagelist = ["User:Hyperborean/", "Camp Half-Blood Wiki"];     $("#wikiactivity-main a.title").each(function { var i, l = pagelist.length, $this = $(this), t = $this.text; for (i = 0 ; i < l ; ++i) if (t === pagelist[i]) $this.closest('li').css('display', 'none'); }); }); $(document).ready(function {   if ( skin == 'oasis' )        $( 'UL#AccountNavigation' ).prepend( '<a href="/wiki/Special:Mypage/global.js" style="font-size:12px">Mypage/global.js</a></li>' ); }); $(document).ready(function {   if ( skin == 'oasis' )        $( 'UL#AccountNavigation' ).prepend( '<a href="/wiki/Special:Mypage/Sandbox" style="font-size:12px">Sandbox</a></li>' ); }); $(document).ready(function {   if ( skin == 'oasis' )        $( 'UL#AccountNavigation' ).prepend( '<a href="/wiki/MediaWiki:Wikia.css" style="font-size:12px">Wikia.css</a></li>' ); }); $(document).ready(function {   if ( skin == 'oasis' )        $( 'UL#AccountNavigation' ).prepend( '<a href="/wiki/MediaWiki:Common.js" style="font-size:12px">Common.js</a></li>' ); });

$(document).ready(function {   if ( skin == 'oasis' )        $( 'UL#AccountNavigation' ).prepend( '<a href="/wiki/MediaWiki:Wikia.js" style="font-size:12px">Wikia.js</a></li>' ); });