User:DeviantSerpent/global.js

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

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

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

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

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

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

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

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

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

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

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

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

importScriptPage( 'FastDelete/code.js', 'dev' ); var fdButtons = []; fdButtons[fdButtons.length] = { 'summary': 'vandalism', 'label': 'V' };

fdButtons[fdButtons.length] = { 'summary': 'spam', 'label': 'S' };

fdButtons[fdButtons.length] = { 'summary': 'unused', 'label': 'U' };

fdButtons[fdButtons.length] = { 'summary': 'Terms of Use violation(s)', 'label': 'T' };

fdButtons[fdButtons.length] = { 'summary': 'not a question', 'label': 'N' };

fdButtons[fdButtons.length] = { 'summary': 'non-english', 'label': 'NE' };

fdButtons[fdButtons.length] = { 'summary': 'cleanup', 'label': 'C' };

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

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

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

window.NoImageLightbox = { novideo: true }; importArticles({   type: 'script',    articles: [        'u:dev:NoImageLightbox/code.js'    ] });

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

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

if (wgPageName.indexOf("Special:MovePage/File:") != -1 || (wgCanonicalNamespace == "File" && Storage)){ LIRoptions = { bottomMessage: 'This appears below the buttons on Special:MovePage', editSummary: 'automatically updating file link(s)', singleButtonText: 'Rename and replace', queueButtonText: 'Rename and add to queue' }  importScriptPage("FileUsageAuto-update/code.js/min.js", "dev"); }

// Auto RC

var AjaxRCRefreshText = 'Auto-refresh'; var AjaxRCRefreshHoverText = 'Automatically refresh the page'; ajaxPages = ["Special:RecentChanges","Special:WikiActivity", "Special:AbuseLog", "Spécial:Modifications_récentes", "Especial:Mudanças_recentes", "Natatangi:Mga_huling_binago"];

// "User talk:" Will go on its page, and not in the edit page

function tplinks { $('a.new').each(function {   if ($(this).attr('title').substring(0, 10) == "User talk:") {        var t_href = $(this).attr('href');        $(this).attr('href', t_href.substring(0, t_href.indexOf('?')));    } });

// Collapsed comments in Special:RecentChanges

if (wgPageName == "Special:RecentChanges") { $('[class="mw-collapsible-toggle mw-collapsible-toggle-collapsed"]').removeClass("mw-collapsible-toggle-collapsed"); } }

// Advanced tools

$.getScript('https://raw.github.com/PrincessPlatinum/Ajax-Scripts/master/Advanced%20Tools.js');

// Red link fixer V2

$.getScript('https://raw.github.com/PrincessPlatinum/Ajax-Scripts/master/WantedPagesBatchRedlinks.js');

// Imports

var ajaxCallAgain = [tplinks]; OFPoptions = {'showlinks': false}; importArticles({   type: "script",    articles: [

// Useful buttons "u:c:User:Jr Mime/buttons.js",

// Auto RC       "w:c:dev:AjaxRC/code.js",

// Auto Undo "w:c:dev:AjaxUndo/code.js",

// Template button "w:c:mlp:User:Jr Mime/MarkForTemplate/General.js",

// Kill Tool "w:c:answers:User:The Mol Man/Annihilate.js",

// HotCat "w:c:answers:MediaWiki:Gadget-HotCat.js",

// WHAM "w:c:dev:WHAM/code.js",

// File uglyness fix "w:c:dev:NoImageLightbox/code.js",

// Wikimarks "w:c:wikimarks:Client.js",

// Cheating template "w:c:a:User:Jr Mime/MarkForTemplate.js",

// CSS pad "w:c:dev:PortableCSSPad/code.js",

// Cache script "w:c:dev:CacheCheck/code.js",

// Old files "w:c:dev:OldFilePages/code.js",

// File Usage Auto update "w:c:dev:FileUsageAuto-update/code.js",

// Hide rail "w:c:dev:HideRail/code.js"

] });