User:Cblair91/global.js

// 12:04, November 24, 2013 (UTC) /* */ /* toolbar links JavaScript */

if(!window.ToolbarLinksLoad) addOnloadHook(addToolbarLinks); var ToolbarLinksLoad = true;

function addToolbarLinks { $('JS').appendTo('ul.tools'); $('CSS').appendTo('ul.tools'); $('Logs (RecentChanges</a> | <a href="/wiki/Special:Log/newusers">NewUsers</a> | <a href="/wiki/Special:AbuseLog">Abuse</a>)</li>').appendTo('ul.tools'); }

/* Define variables! */ var cg = ['Speedy deletion candidates', 'Speedy move candidates', 'Outdated Furniture Information']; /* Categories to watch */ var excludeuser = "Cblair91"; /* what users to exclude from category notifier */ var autoWelcomeText = '~'; /* auto welcome text */ var autoCreateCat = false; /* Mass create categories */

/* Include all the useful goodies! */ importArticles({   type: "script",    articles: [        "User:Cblair91/common.js",        "w:scratchpad:User:Cblair91/wham.js",        "w:scratchpad:User:Cblair91/wikia.js/quickdelete.js",        "w:scratchpad:User:Cblair91/wikia.js/masscreatecategories.js",        "w:runescape:User:Cblair91/autowelcome.js",        //"w:runescape:User:Cblair91/categories.js", /* Category notifier */        "w:runescape:MediaWiki:Common.js/spreport.js",    ] });

/* Change wiki activity to recent changes */ function WikiActivity2RecentChanges { $('a[href$="/wiki/Special:WikiActivity"]').attr("href", "/wiki/Special:RecentChanges").html("Recent Changes"); }

addOnloadHook(WikiActivity2RecentChanges);

/* Kill image popups */ window.wgEnableImageLightboxExt = false; $(document).ready(function {   $('#WikiaArticle, .LatestPhotosModule, #article-comments').unbind('click.lightbox');    $('a.image').each(function { if($(this).attr('href').indexOf('static1.wikia.nocookie.net') != -1) $(this).attr('href', wgServer + '/wiki/File:' + $(this).attr('href').substring($(this).attr('href').lastIndexOf('/') + 1)); }); });

if(mwCustomEditButtons) { mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images.wikia.com/central/images/1/11/Button_category.png", "speedTip": "PAGENAME", "tagOpen": "" }; }

$('#savePage').click(function {   $('#editform').submit; });

$(document).ready(function {   $('.wikia-button.comments.secondary.talk').after('<a href="?action=purge" class="wikia-button" rel="nofollow">Purge</a>');    if(wgAction == "edit") {        $('.start-a-wiki').after('<input id="savePage" type="button" value="Publish" style="float:left;margin-top:6px;">');    } }); /* */