User:Ditto Duck Penguin/global.js

window.ajaxRefresh = 1; window.ajaxPages = ["Special:RecentChanges","Special:Watchlist","Special:Log","Special:Contributions","User:Ditto_Creeper_Bot/IL","Special:Images","Special:Log/upload", "Special:WikiActivity" ]; window.AjaxRCRefreshText = 'Refresh'; window.AjaxRCRefreshHoverText = 'Refreshing'; massProtectDelay = 200;

/* Update&Rename Modification */ PRAoptions = { editSummary: 'Updating page links' };

/* Quick Delete comments */ Advancedcomments = { defaultreason: "Inappropriate, Leak, or not needed." };

/* AdvancedOasisUI settings */ window.AdvancedOasisUI = { accountNavFollowedPages: true, accountNavWatchlist: true, categoryRedlink: true, RCHeader: true, DefaultSourceMode: true, lightbox: true, randomPageLimitedTo: '', activity2RC: false, userLang: true, };

/* MessageBlock settings */ var MessageBlock = { title : 'Block', message : 'You have been blocked for $2 because you have $1', autocheck : true }; /* Fast delete settings */ window.fdButtons = []; window.fdButtons.push(   {        summary: 'Vandalism/Spam',        label: 'V/S'    },    {        summary: 'Housekeeping',        label: 'HK'    },    {        summary: 'Inappropriate content',        label: 'Content'    },    {        summary: 'Unused',        label: 'Unused'    } ); /* QuickModTools settings */ window.QuickModTools = { quickreasons: [ "Misbehaving in chat-please see the Chat guideines", "Spam/Flooding Chat", "Swearing", "Overusing Caps", "Trolling", "Intimidating behaviour/harassment/trolling", "Posting/Discussing leak content/topics", "Ban Evasion", "Underaged", "Hate speech/Slur", "Linking NSFW content", "Sockpuppetry", "Connection problem, please fix it and leave a message on my message wall" ],	defbanreason: "Misbehaving in chat", defbanlength: "1200" }; /* AutoEditDropdown settings */ window.AutoEditDropdownConfig = { expandedAreaContribute: true, expandedAreaEdit: false };

var qtEnableUserPageOverwrite = true; var qtEnableMessageWallGreetingOverwrite = true; var qtMessageWallGreetingTemplate = ''; var qtUserPageTemplate = ''; var replacements = 'again.'; massCategorizationDelay = 5000;

//*Slowly Cleaning up*// importScriptPage('MediaWiki:VSTFReport/code.js','kocka'); //Kocka's Vandal reporter importScriptPage("MediaWiki:Torus.js","monchbox"); //Chat remaker importScriptURI('http://botcentral.wikia.com/index.php?title=User:Ditto_Creeper_Bot/test&action=raw&ctype=text/javascript'); //Custom UndoTool and MassCat importScriptURI('http://botcentral.wikia.com/index.php?title=User:Ditto_Creeper_Bot/AjaxUndo&action=raw&ctype=text/javascript'); //Ajax Undo, under construction importScriptURI('http://botcentral.wikia.com/index.php?title=User:Ditto_Creeper_Bot/revert&action=raw&ctype=text/javascript'); importScriptPage('FixWantedFiles/code.js', 'dev'); //WantedFile Fix importScriptPage('MediaWiki:RedirectManagement/code.js', 'dev'); //Fixes redirects importScriptPage('MediaWiki:QuickTools/advanced.js', 'dev'); //QuickTools with epic functions. importScriptPage('User:K6ka/scripts/Gadget-HotCat.js', 'k6ka-test' ); importScriptPage('MediaWiki:Common.js/spreport.js', 'runescape' ); importScriptPage('Mediawiki:AjaxUndo/code.js', 'dev'); //*Slowly Cleaning up*//

importArticles({   type: "script",    articles: [        "u:dev:ListFiles/code.js", // ListFiles from Dev Wiki        'u:josephhawk:User:Josephyr/categorycleanup.js', //Cleans those unwanted categories        'u:josephhawk:User:Josephyr/file.js', //Lists mroe files.        'u:josephhawk:User:Josephyr/filecleanup.js', //Cleans fules        'u:josephhawk:User:Josephyr/linksweeper.js', //Well, sweeps the unwanted links        'u:josephhawk:User:Josephyr/redirects.js',        'u:josephhawk:User:Josephyr/tc.js',    ] });

importArticles({   type: "script",    articles: [ 'u:dev:Mediawiki:AjaxRC/code.js', //Hola, the creator of this is my buddy. 'u:elderscrolls:MediaWiki:Common.js/DiscussionsFeed.js', //This tool is the bomb. Shows an RC for a discussion feed. Perfect for DC mods. 'u:dev:MediaWiki:AdvancedOasisUI/code.js', //Adds extra features. 'u:dev:Mediawiki:AjaxThreadUnfollow/code.js', //Quick Unfollow a thread. 'u:dev:Mediawiki:AutoEditDropdown/code.js', //Edit Drop downs. 'u:dev:MediaWiki:ColoredColors/code.js', //Hex colors will represent themselves by their hex. 'u:dev:Mediawiki:DisplayClock/code.js', //UTC Clocks. 'u:dev:Mediawiki:FastDelete/code.js', //Quick Delete. 'u:dev:Mediawiki:MassBlock/code.js', //Quick Blocks those damn vandals. 'u:dev:Mediawiki:MassNullEdit/code.js', //Mass Null Edit, the most useless thing for me. 'u:dev:Mediawiki:MassRedirect/code.1.js', //Mass Redirect for pages. 'u:dev:Mediawiki:MassUserRights/code.js', //Pfft, I'll use it when I need it. 'u:dev:MediaWiki:AjaxBatchDelete/code.2.js', //For deleting alot o stuff. 'u:dev:MediaWiki:AjaxBatchUndelete.js', //For undeleting alot o stuff. 'u:dev:MediaWiki:AjaxBatchUndelete/code.js', //Secondary coding. 'u:dev:MediaWiki:AjaxBlock/code.js', //Ajax blocking with a loader. 'u:dev:MediaWiki:AjaxPatrol/code.js', //Ajax Patrolling with Loader. 'u:dev:MediaWiki:AjaxRedirect/code.js', //Ajax redirect with loader. 'u:dev:MediaWiki:AjaxRename/code.js', //Rename pages with a loader. 'u:dev:MediaWiki:AntiUnicruft/code.js', //Fixes bugs. 'u:dev:MediaWiki:AutoEditPages/code.js', //I don't even know. 'u:dev:MediaWiki:CacheCheck/code.js', //Checks my cache for anything. 'u:dev:MediaWiki:CategoryRenameAuto-update/code.js', //Rename categories in an ease. 'u:dev:MediaWiki:ContribsLink/code.js', //Contribs link instead of profile with diffs. 'u:dev:MediaWiki:DisplayTimer/code.js', 'u:dev:MediaWiki:DupImageList/code.js', //DPL. 'u:dev:MediaWiki:EditcountTag/code.js', 'u:dev:MediaWiki:EditIntroButton/code.js', //For admins only. Edit 'edit' messages. 'u:dev:MediaWiki:ExternalImageLoader/code.js', //For loading cross world images. [NSFW images are prohibited, use wisely.] 'u:dev:MediaWiki:FastDelete/code.js', //Delete within seconds. 'u:dev:MediaWiki:FasterBanModule/code.js', //I don't even use this. 'u:dev:MediaWiki:FileUsageAuto-update/code.js', 'u:dev:MediaWiki:FindAndReplace/code.js', 'u:dev:MediaWiki:FloatingToc/code.js', 'u:dev:MediaWiki:HeaderLinks/code.js', 'u:dev:MediaWiki:LastEdited/code.js', 'u:dev:MediaWiki:MarkForDeletion/code.js', 'u:dev:MediaWiki:MassBlock/code.js', 'u:dev:MediaWiki:MassProtect/code.js', 'u:dev:MediaWiki:MassRenameRevert/code.js', 'u:dev:MediaWiki:MultipleFileDelete/code.js', //Pfft, got my own wiki hidden boi. 'u:dev:MediaWiki:Nuke/code.js', //Damn em vandals, they don't know what's coming ;D 'u:dev:MediaWiki:PortableCSSPad/code.js', //Portable css notepad,efficient for testing css live. [Thanks Sophie] 'u:admintools:MediaWiki:Common.js/Maintenance.js', //Creating an extra layer for reporting. /*'u:dev:MediaWiki:PrivateMessageAlert/code.js',*/ //Private Message Alert for chatroom only. 'u:dev:MediaWiki:QuickCreateMessageWallGreeting/code.js', 'u:dev:MediaWiki:QuickCreateUserPage/code.js', 'u:dev:MediaWiki:QuickModTools/loader.js', 'u:dev:MediaWiki:QuickToolsv2/code.js', //Quick tools made by Shining Armor, a brilliant coder. 'u:dev:MediaWiki:Quick_Management/code.js', //God damn thing ain't loading bruh. 'u:dev:MediaWiki:RelocateEditDiscussionButtons/code.js', //As the title says. 'u:dev:MediaWiki:ReplyAndClose/code.js', //This is holy molly 'u:dev:MediaWiki:RevealAnonIP/code.js', //Reveals IP of an IP User 'u:dev:MediaWiki:SearchSuggest/code.js', 'u:dev:MediaWiki:ThreadIndicator/code.js', 'u:dev:MediaWiki:UnsafeScripts/code.js', //Huh??? 'u:dev:MediaWiki:ViewRemoved/code.js', //As the title, view removed pages in the RC 'u:dev:MediaWiki:View_Source/code.js', //View the raw format of a page. 'u:dev:MediaWiki:WallGreetingButton/code.js', //Allows quick Message Wall Edit through a button 'u:dev:MediaWiki:WHAM/code.2.js', //Wham thy enemies. 'u:dev:Mediawiki:Message/code.js', //This goddamn script ain't working bro. 'u:dev:Mediawiki:MessageBlocker/code.js', //Blocks Message wall messages from Trolls 'u:dev:Mediawiki:NullEditButton/code.js', //Artificial page volume nullifier. [I think] 'u:dev:Mediawiki:PageRenameAuto-update/code.js', //Bots all the pages after renamed. 'u:dev:Mediawiki:PurgeButton/code.js', //Auto Purge Button. 'u:dev:Mediawiki:QQX/code.js', //Changing the skins. 'u:dev:Mediawiki:QuickComments/code.js', //Deletes alot o comments fast. 'u:dev:Mediawiki:QuickDelete/code.js', //Deletes alot o files fast 'u:dev:Mediawiki:QuickThreads/code.js', //Ajax Remove threads. 'u:dev:Mediawiki:RevealAnonIP/usercode.js', //Reveals IP of an IP User 'u:dev:Mediawiki:SignatureCheck/code.js', //Alerts me if I didn't add a signature 'u:kocka:MediaWiki:AjaxCommentDelete/code.js', 'u:kocka:MediaWiki:AjaxThreadDelete/code.js', 'u:kocka:MediaWiki:RedirectMessageWall/code.js', /*'u:navid:MediaWiki:BadWords.js',*/ //Swears set as pings [Only works for chat] /*'u:runescape:User:Joeytje50/tabinsert.js',*/ //TabInsert Usernames [For chatroom Only] 'u:starmanw:MediaWiki:QuickLogs/code.js', //Logs through the contribs itself. 'u:vstf:User:Joeyaa/wham.js' //Whammin like a Pro boi ;D ] });

//*End of Script*//

$('a').each(function {  if ( $(this).attr('href') == '/wiki/Special:RecentChanges' ) {      $(this).attr('href', '/wiki/Special:RecentChanges?limit=50');   } });

//*Navigation*// var username = mw.config.get('wgUserName'); page = mw.config.get("wgPageName"); $(function {   var username = mw.config.get('wgUserName'),    page = mw.config.get("wgPageName"),    globalLinks = {        "User": "User:" + username,        "Wall": "User_talk:" + username,        "RC": "Special:RecentChanges?hidebots=0&limit=10",        "Admins": "Special:ListAdmins",        "Contribs": "Special:Contributions/" + username,        "Raw": page + "?action=raw",        "edit": page + "?action=edit"    }, linksContent = "";    if(mw.config.get("wgCityId") === "177") globalLinks.AL = "Special:AbuseLog";    for(var prop in globalLinks) linksContent += "" + prop + "";    $(".global-navigation-container").append(linksContent);    // Empty delete reason    if(mw.config.get('wgAction') && mw.config.get('wgAction') === 'delete') $("#wpReason").val(""); });

/*Adds stuff to Advance Tools*/

/* Adds link to userpage in account naviagtion menu */ $(function { $('Edit Page').insertBefore('.AccountNavigation .subnav li:first'); }); $(function { $('Raw Format').insertBefore('.AccountNavigation .subnav li:first'); }); $(function { $('Purge the Page').insertBefore('.AccountNavigation .subnav li:first'); }); $(function { $('Discussion Feed</a></li>').insertBefore('.AccountNavigation .subnav li:first'); }); $(function { $('<a href="/wiki/c:w:User:Ditto_Creeper_Bot/RC">Recent Changes</a></li>').insertBefore('.AccountNavigation .subnav li:first'); }); $(function { $('<a href= "/wiki/Special:Specialpages">Special Pages</a></li>').insertBefore('.AccountNavigation .subnav li:first'); }); $(function { $(' Uploaders <a href="/wiki/Special:MultipleUpload">Multi-Upload</a><a href= "/wiki/Special:BlankPage?blankspecial=MultiUpload">Super Uploader</a>  Tools <a href= "?action=edit">Edit Page</a><a href= "?action=raw">Raw Format</a>  Wanted Files <a href= "/wiki/Special:WantedPages">Wanted Pages</a><a href= "/wiki/Special:WantedFiles">Wanted Files</a><a href= "/wiki/Special:WantedCategories">Wanted Categories</a><a href= "/Special:WantedTemplates">Wanted Templates</a>  Unused Files <a href= "/wiki/Special:UnusedFiles">Unused Files</a><a href= "/wiki/Special:UnusedPages">Unused Pages</a><a href= "/wiki/Special:UnusedFiles">Unused Files</a><a href= "/wiki/Special:UnusedCategories">Unused Categories</a><a href= "/Special:UnusedTemplates">Unused Templates</a><a href= "/Special:UnusedVideos">Unused Videos</a>  Uncategorized Files <a href= "/wiki/Special:UncategorizedFiles">Uncat Files</a><a href= "/wiki/Special:UncategorizedPages">Uncat Pages</a><a href= "/wiki/Special:UncategorizedFiles">Uncat Files</a><a href= "/Special:UncategorizedCategories">Uncat Categories</a>  ').insertBefore('.AccountNavigation .subnav li:first '); }); $(function { $(' Content MNGR. <a href="/wiki/c:steven-universe:User:Ditto_Creeper_Bot/DPL">Duplicates</a><a href="/wiki/c:steven-universe:User:Ditto_Creeper_Bot/IL">Uncategorized</a><a href= "/wiki/Special:UnusedFiles">Unused Files</a><a href= "/wiki/Project:ListFiles">List Files</a><a href= "/wiki/Special:BlankPage?blankspecial=MultiUpload">Super Uploader</a> ').insertBefore('.AccountNavigation .subnav li:first '); }); //Replica of that dropdown menu. $(function { $(' Settings <a href="/wiki/Special:Following">Following</a><a href="/wiki/Special:Preferences">Settings</a><a href="#">Null</a> ').insertBefore('.AccountNavigation .subnav li:first '); }); /*$(function { if ( wgNamespaceNumber == 6 && !$('.categories').hasClass('ui-sortable')) { $('.wikinav2 .WikiaPageHeader').css('padding-right', '0'); $('#WikiaPageHeader .comments').after( '<button class="wikia-button" id="hide-stuff" title="Hides">Hide '); $('#hide-stuff').click(function {     $("button").remove; }); } });*/

/* Summons report button */

$(document).keydown(function(event) {       if((event.altKey || event.metaKey) && event.which == 83) { $(function reportvandalism{ $('.SpeechBubble .wikia-button').after( '<button class="wikia-button" id="reportvandal" style="float:right;display: inline-block;position:relative;margin-top:none;margin-left:none" title="Report">Report '); $('#reportvandal').click(function { setTimeout(function { $('html > body #Wall textarea').val('').trigger(jQuery.Event('keydown', {which: 13})); }, 500); }); });           event.preventDefault;            return false;        }    }); /* Removes Footer */ $(function { $('footer').remove;   });

/* Quick Access to EditCount */ if ( $('.tally').length ) { var $tally = $('.tally'); $tally.attr('title', 'EditCount'); $tally.click(function {       window.location.href = wgServer + '/wiki/Special:EditCount/' + wgPageName.split('User:')[1];    }); } /* Redirect to base page if ends with '/' */ if (wgPageName.match("/$")) { wgNewPageName = wgPageName.slice(0, -1); window.location.href = wgServer + '/' + wgNewPageName; } //*End for Navigation*//

/* Import for various scripts */ //Hi, Whatcha lookin for? importArticles({   type: 'script',    articles: [        'u:starmanw:MultiUpload/code.js',         //Upload several thousand pics at once, is not recommended by Wiki Staff.        'u:dev:LastEdited/code.js',         //View last editor of a page with it's volume.        'u:dev:MediaWiki:RecentChangesMultiple/code.2.js'        //Multiple Recent changes feed.        ] });