Community Central
Community Central

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Press Ctrl-F5.
// 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('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": "<!-- ",
     "tagClose": " -->",
     "sampleText": "Insert comment here"}
	 
   mwCustomEditButtons[mwCustomEditButtons.length] = {
     "imageFile": "http://images1.wikia.nocookie.net/central/images/2/23/Button_code.png",
     "speedTip": "Code",
     "tagOpen": "<code>",
     "tagClose": "</code>",
     "sampleText": "Insert code"}

   mwCustomEditButtons[mwCustomEditButtons.length] = {
     "imageFile": "http://images1.wikia.nocookie.net/central/images/1/16/Button_reflink_alternate.png",
     "speedTip": "References",
     "tagOpen": "<ref>",
     "tagClose": "</ref>",
     "sampleText": "Insert a reference"}

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

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

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

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

// Chat hacks
importScriptPage('User:Foodbandlt/FixedChatHacks.js', 'c');

// 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'
    ]
});