User:Cblair91/global.js

/* toolbar links JavaScript */

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

function addToolbarLinks { $('JS').appendTo('ul.tools'); $('CSS').appendTo('ul.tools'); $('Logs (RecentChanges | NewUsers | Abuse</a>)</li>').appendTo('ul.tools'); }

/* Define variables! */ var cg = ['Speedy deletion candidates', 'Speedy move candidates']; /* Categories to watch */ var excludeuser = "Cblair91"; /* what users to exclude from category notifier */ var autoWelcomeText = ''; /* auto welcome text */

var includes = [ "w:c:runescape:User:Quarenon/autowelcome.js", /* Auto welcome for talk pages */ "w:c:runescape:User:Cblair91/watchlist.js", /* Watch list notifier */ "w:c:runescape:User:Cblair91/categories.js", /* Category notifier */ "w:c:runescape:User:Joeytje50/dupes.js", /* Duplicate file detetion */ ]; // Create a list of items to include

/* Set to false for general reasons */ var myCommon = false, isAjaxRefreshIncluded = false;

/* If I have a common.js, it will set to true */ if(myCommon == true) includes.push("User:Cblair91/common.js");

/* Chat JavaScript */ if(wgPageName == "Special:Chat") includes.push("w:c:runescape:User:Cblair91/chat.js"); /* My chat javascript on RSW */

/* Auto Refresh ~ Stop double including this */ if(isAjaxRefreshIncluded == false) includes.push("w:c:runescape:User:Cblair91/ajaxrefresh.js"); /* Auto refresh */

/* Include all the useful goodies! */ importArticles({   type: "script",    articles: includes });