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

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

// Purge importScriptPage('PurgeButton/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://images1.wikia.nocookie.net/central/images/1/16/Button_reflink_alternate.png", "speedTip": "References", "tagOpen": " ", "sampleText": "Insert a reference"}

mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images1.wikia.nocookie.net/central/images/8/8f/Button_poeme.png", "speedTip": "Poem", "tagOpen": " ", "tagClose": " ", "sampleText": "Insert a poem"}

mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images1.wikia.nocookie.net/central/images/5/58/Button_small.png", "speedTip": "Small", "tagOpen": " ", "tagClose": " ", "sampleText": "Small text"}

mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://i1184.photobucket.com/albums/z323/chumpette/Duck_sign.png", "speedTip": "Duck signature", "tagOpen": "", "tagClose": "", "sampleText": ""} }

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

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

// EditIntro importScriptPage('EditIntroButton/code.js', 'dev');

// Convert "Anonymous" in Comments to IP address // from User:Monchoman45 function AnonIP { var list = document.getElementsByTagName('a'); for(var i in list) { if(list[i].href && list[i].href.indexOf('Special:Contributions/') && list[i].innerHTML == 'A Wikia contributor') { list[i].innerHTML = list[i].href.substring(list[i].href.lastIndexOf('/') + 1, list[i].href.length); }	} } addOnloadHook(AnonIP);

// Wikim*rks importArticles({   type: 'script',    articles: [        'u:wikimarks:Client.js'    ] });

// OldFilePages OFPoptions = {'showlinks': false}; importArticles({   type: 'script',    articles: [        'u:dev:OldFilePages/code.js'    ] });