User:Staw-Hat Luffy/global.js

/* Monchomans chat hacks */ importScriptPage('User:Monchoman45/ChatHacks.js', 'c');

importScriptPage('User:Joeytje50/ChatPMs.js', 'c');

/* Purge Button in Page Options*/ PurgeButtonText = 'Refresh'; importScriptPage('PurgeButton/code.js', 'dev');

/* Creates Back To Top Button In Footer */ importScriptPage('BackToTopButton/code.js', 'dev'); var Speed = 50;

/* File List */ importArticles({   type: "script",    articles: [        "u:dev:ListFiles/code.js" // ListFiles from Dev Wiki    ] });

/* Signature Check */ importArticles({	type: 'script',	articles: [		// ...		'w:c:dev:SignatureCheck/code.js',		// ...	] });

/* InactiveUsers */ InactiveUsers = { months: 1 }; importScriptPage('InactiveUsers/code.js', 'dev'); /* RevealAnonIP */ importScriptPage('RevealAnonIP/code.js', 'dev');

/* View Source */ importArticles({   type: 'script',    articles: [         'u:dev:View_Source/code.js'    ] });

/* Intro Edit Button */ EditIntroButtonText = 'Edit Intro'; importScriptPage('EditIntroButton/code.js', 'dev');

/* Thread Inspection */ importScriptPage('Thread Inspection/code.js', 'dev');

/* Image Deletes */ importScriptPage( 'FastOldImageDelete/code.js', 'dev' );

// http://dev.wikia.com/wiki/FixWantedFiles importScriptPage('FixWantedFiles/code.js', 'dev');

/* CacheCheck */ cacheSkip = []; cacheSkipLimit = 1000; importArticles({   type: 'script',    articles: [        'u:dev:CacheCheck/code.js'    ] });

/* WHAM */ importScriptPage('WHAM/code.js', 'dev');

/* AdvancedOasisUI */ window.AdvancedOasisUI = { accountNavFollowedPages: true, accountNavWatchlist: true, categoryRedlink: true, RCHeader: true, DefaultSourceMode: true, lightbox: false, randomPageLimitedTo: '', activity2RC: false, userLang: true, }; importScriptPage('AdvancedOasisUI/code.js', 'dev');

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

/* Make Forum Talk Button Appear */ (function($, mw) {   var title = mw.config.get('wgTitle'), numcomments = 0;    if (mw.config.get('wgPageName').substring(0, 6) === 'Forum:') {        $('#WikiaPageHeader .wikia-menu-button').after( ' Talk ' );       $('a.talk').attr('href', '/wiki/Forum talk:' + title);        $.getJSON('/api.php?action=query&prop=revisions&titles=Forum talk:' + title + '&rvlimit=max&format=json', function(data) { for (var pageID in data.query.pages) break; if (data.query.pages[pageID].revisions) { numcomments = data.query.pages[pageID].revisions.length; }           $('.talk .commentsbubble').text(numcomments); });   } }(this.jQuery, this.mediaWiki));