User:D-day/global.js

// Remove lightbox $(document).ready(function { $('#WikiaArticle').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);      }    }  } });

// AdvancedOasisUI by User:Porter21 at dev.wikia.com importScriptPage('AdvancedOasisUI/code.js', 'dev');

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

// Purge importScriptPage('Purgetab/code.js', 'dev');

// Rollback summary importScriptPage('User:Grunny/rollbackSummary.js', 'firefly');

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

// Custom edit buttons if (mwCustomEditButtons) { mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images.wikia.com/central/images/c/c8/Button_redirect.png", "speedTip": "Redirect", "tagOpen": "#REDIRECT ",    "tagClose": "", "sampleText": "Insert text"};

mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images.wikia.com/central/images/7/74/Button_comment.png", "speedTip": "Comment visible only for editors", "tagOpen": "", "sampleText": "Insert comment here"} mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images1.wikia.nocookie.net/central/images/2/23/Button_code.png", "speedTip": "Code", "tagOpen": " ", "sampleText": "Insert code"}

mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images2.wikia.nocookie.net/central/images/7/79/Button_reflink.png", "speedTip": "References", "tagOpen": " ", "sampleText": "Insert a reference"} }

// Red link category $(function { $('.newcategory').addClass('new'); });