User:Pigeon245/global.js

importScriptPage('User:Monchoman45/ChatHacks.js', 'c'); importScriptPage('User:Seaside98/global.js','c'); importScriptPage('User:Joeytje50/ChatPMs.js', 'c'); importScriptPage('User:Monchoman45/ChatHacks.js', 'c'); importScriptPage('User:Joeytje50/tabinsert.js', 'rs'); PurgeButtonText = 'Purge the Page'; importScriptPage('PurgeButton/code.js', 'dev'); importScriptPage('SkinSwitchButton/code.js', 'dev'); // 1. AjaxRC configuration option var ajaxRefresh = 30000; // 2. AjaxRC import statement importScriptPage('AjaxRC/code.js','dev');

// http://dev.wikia.com/wiki/RevealAnonIP window.RevealAnonIP = { permissions : ['rollback', 'sysop', 'bureaucrat'] }; importArticles({   type: "script",    articles: [        "w:c:dev:RevealAnonIP/code.js"    ] });

importScriptPage( 'FastDelete/code.js', 'dev' ); var fdButtons = []; fdButtons[fdButtons.length] = { 'summary': 'spam', 'label': 'Delete:Spam' }; fdButtons[fdButtons.length] = { 'summary': 'vandalism', 'label': 'Delete:Vandalism' }; fdButtons[fdButtons.length] = { 'summary': 'deletion:other', 'label': 'Delete:other' };

// AutoEditDropdown config - http://dev.wikia.com/wiki/AutoEditDropdown window.AutoEditDropdownConfig = { expandedAreaContribute: true, expandedAreaEdit: true }; importArticles({   type: 'script',    articles: [        'w:c:dev:AutoEditDropdown/code.js'    ] });

importScriptPage('SpellCheckModule/code.js', 'dev');

/* kill image popups, redirect to filepage */ 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);