User:My Little Pony/global.js

//Chathacks importScriptPage("User:Foodbandlt/FixedChatHacks.js","c"); //Multikick importScriptPage("User:Madnessfan34537/multikick.js","cod"); //MultiPM if(wgCanonicalSpecialPageName == 'Chat') { function createGroupPM { var users = prompt('Enter comma seperated list of users to start a PM with',''); var users = users.split(','); mainRoom.openPrivateChat(users); } $('form#Write').append('PM'); } //Tabinsert importScriptPage("User:Joeytje50/tabinsert.js","rs");

// 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"]; // Files if (wgPageName.indexOf("Special:MovePage/File:") != -1 || (wgCanonicalNamespace == "File" && Storage)){ LIRoptions = { bottomMessage: 'This maybe appears under move buttonz', editSummary: 'Updating file links (automatic)', singleButtonText: 'Rename and replace', queueButtonText: 'Rename and add to queue' }  importScriptPage("FileUsageAuto-update/code.js", "dev"); } // Collapsed comments & Red link fix 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('?')));    } }); if (wgPageName == "Special:RecentChanges") { $('[class="mw-collapsible-toggle mw-collapsible-toggle-collapsed"]').removeClass("mw-collapsible-toggle-collapsed"); } } // Purge button PurgeButtonText = 'Purge'; // Variables (Auto protect-delete) var fdButtons = []; fdButtons[fdButtons.length] = { 'summary': 'Spam', 'label': 'S' }; fdButtons[fdButtons.length] = { 'summary': 'Junk', 'label': 'J' }; fdButtons[fdButtons.length] = { 'summary': 'Opinion', 'label': 'O' }; fdButtons[fdButtons.length] = { 'summary': 'Non-English', 'label': 'Ѭ' }; fdButtons[fdButtons.length] = { 'summary': 'Not a question', 'label': 'NQ' }; fdButtons[fdButtons.length] = { 'summary': 'Homework', 'label': 'HW' }; fdButtons[fdButtons.length] = { 'summary': 'Clean-up', 'label': 'C↑' }; fdButtons[fdButtons.length] = { 'summary': 'Too broad/not enough detail', 'label': 'B' }; fdButtons[fdButtons.length] = { 'summary': 'Violation of Wikias terms of use (pornography, advertisement, etc.)', 'label': 'ToU' }; // Imports var ajaxCallAgain = [tplinks]; importArticles({   type: "script",    articles: [        // 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",        // Delete-Protect Buttons        "w:c:answers:User:The Mol Man/FastDeleteProtect.js",        // WHAM        "w:c:dev:WHAM/code.js",        // File uglyness fix        "w:c:dev:NoImageLightbox/code.js",        // Quick Tools (Re-customization)        "w:c:a:User:Jr Mime/QuickTools.js",        // Wikimarks        "w:c:wikimarks:Client.js",        // Cheating template        "w:c:a:User:Jr Mime/MarkForTemplate.js",        // Recent Changes Module        "w:c:dev:RecentChangesModule/code.js",        // Buttons        "u:c:User:Jr Mime/buttons.js" ] });