User:Ditto Duck Penguin/global.js

/* 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 }; /* Chat Tags settings */ var chatags = { images: true, videos: true }; /* Cache check settings */ window.topLevelCat = ''; /* 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 };

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

var qtEnableUserPageOverwrite = true; var qtEnableMessageWallGreetingOverwrite = true; var qtMessageWallGreetingTemplate = ''; var qtUserPageTemplate = ''; anchoredRollbackBot = true;

//*Slowly Cleaning up*//

importScriptPage('MediaWiki:VSTFReport/code.js','kocka'); importScriptPage("MediaWiki:Torus.js","monchbox"); importScriptPage('MediaWiki:AnchoredRollback/code.js', 'dev'); importScriptURI('http://botcentral.wikia.com/index.php?title=User:Ditto_Creeper_Bot/test&action=raw&ctype=text/javascript'); importScriptURI('http://botcentral.wikia.com/index.php?title=User:Ditto_Creeper_Bot/AjaxUndo&action=raw&ctype=text/javascript'); importScriptURI('http://botcentral.wikia.com/index.php?title=User:Ditto_Creeper_Bot/spamreport&action=raw&ctype=text/javascript'); importScriptPage('FixWantedFiles/code.js', 'dev'); importScriptPage('MediaWiki:RedirectManagement/code.js', 'dev'); importScriptPage('MediaWiki:Rollback/code.js', 'dev'); importScriptPage('MediaWiki:AnchoredRollback/code.js', 'dev');

//*Slowly Cleaning up*// importArticles({   type: "script",    articles: [ 'u:answers:MediaWiki:Gadget-HotCat.js', 'u:dev:AdvancedOasisUI/code.js', 'u:dev:AjaxBatchDelete/code.js', 'u:dev:AjaxBatchUndelete/code.js', 'u:dev:AjaxThreadUnfollow/code.js', 'u:dev:AutoEditDropdown/code.js', 'u:dev:ChatTimestamps/code.js', 'u:dev:ColoredColors/code.js', 'u:dev:DisplayClock/code.js', 'u:dev:DupImageList/code.js', 'u:dev:FastDelete/code.js', 'u:dev:ListFiles/code.js', 'u:dev:MarkForDeletion/code.js', 'u:dev:MassBlock/code.js', 'u:dev:MassCategorization/code.js', 'u:dev:MassNullEdit/code.js', 'u:dev:MassProtect/code.js', 'u:dev:MassRedirect/code.1.js', 'u:dev:MassRenameRevert/code.js', 'u:dev:MassUserRights/code.js', 'u:dev:MediaWiki:AjaxBatchDelete/code.2.js', 'u:dev:MediaWiki:AjaxBatchUndelete.js', 'u:dev:MediaWiki:AjaxBatchUndelete/code.js', 'u:dev:MediaWiki:AjaxBlock/code.js', 'u:dev:MediaWiki:AjaxPatrol/code.js', 'u:dev:MediaWiki:AjaxRC/code.js', 'u:dev:MediaWiki:AjaxRedirect/code.js', 'u:dev:MediaWiki:AjaxRename/code.js', 'u:dev:MediaWiki:AjaxUndo/code.js', 'u:dev:MediaWiki:AntiUnicruft/code.js', 'u:dev:MediaWiki:AutoEditDropdown/code.js', 'u:dev:MediaWiki:AutoEditPages/code.js', 'u:dev:MediaWiki:CacheCheck/code.js', 'u:dev:MediaWiki:CategoryRenameAuto-update/code.js', 'u:dev:MediaWiki:ChatAnnouncements/code.js', 'u:dev:MediaWiki:ChatOptions/code.js', 'u:dev:MediaWiki:ChatReload/code.js', 'u:dev:MediaWiki:CleanWantedFiles/code.js', 'u:dev:MediaWiki:ContribsLink/code.js', 'u:dev:MediaWiki:DisplayTimer/code.js', 'u:dev:MediaWiki:DupImageList/code.js', 'u:dev:MediaWiki:EditcountTag/code.js', 'u:dev:MediaWiki:EditIntroButton/code.js', 'u:dev:MediaWiki:ExternalImageLoader/code.js', 'u:dev:MediaWiki:FastDelete/code.js', 'u:dev:MediaWiki:FasterBanModule/code.js', '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:MassCategorization/code.js', 'u:dev:MediaWiki:MassProtect/code.js', 'u:dev:MediaWiki:MassRenameRevert/code.js', 'u:dev:MediaWiki:Message/code.js', 'u:dev:MediaWiki:MessageBlock/code.js', 'u:dev:MediaWiki:MisspelledPage/code.js', 'u:dev:MediaWiki:MultipleFileDelete/code.js', 'u:dev:MediaWiki:Nuke/code.js', 'u:dev:MediaWiki:NullEditButton/code.js', 'u:dev:MediaWiki:PortableCSSPad/code.js', 'u:dev:MediaWiki:PrivateMessageAlert/code.js', 'u:dev:MediaWiki:PurgeButton/code.js', 'u:dev:MediaWiki:QQX/code.js', 'u:dev:MediaWiki:QuickComments/code.js', 'u:dev:MediaWiki:QuickCreateMessageWallGreeting/code.js', 'u:dev:MediaWiki:QuickCreateUserPage/code.js', 'u:dev:MediaWiki:QuickDelete/code.js', 'u:dev:MediaWiki:QuickModTools/loader.js', 'u:dev:MediaWiki:QuickThreads/code.js', 'u:dev:MediaWiki:QuickTools/advanced.js', 'u:dev:MediaWiki:QuickToolsv2/code.js', 'u:dev:MediaWiki:Quick_Management/code.js', 'u:dev:MediaWiki:RecentChangesMultiple/code.2.js', 'u:dev:MediaWiki:RedirectManagement/code.js', 'u:dev:MediaWiki:RelocateEditDiscussionButtons/code.js', 'u:dev:MediaWiki:ReplyAndClose/code.js', 'u:dev:MediaWiki:RevealAnonIP/code.js', 'u:dev:MediaWiki:Rollback/code.js', 'u:dev:MediaWiki:SearchSuggest/code.js', 'u:dev:MediaWiki:ThreadIndicator/code.js', 'u:dev:MediaWiki:UnsafeScripts/code.js', 'u:dev:MediaWiki:ViewRemoved/code.js', 'u:dev:MediaWiki:View_Source/code.js', 'u:dev:MediaWiki:WallGreetingButton/code.js', 'u:dev:MediaWiki:WHAM/code.2.js', 'u:dev:Message/code.js', 'u:dev:MessageBlock/code.js', 'u:dev:MessageBlocker/code.js', 'u:dev:NullEditButton/code.js', 'u:dev:PageRenameAuto-update/code.js', 'u:dev:PurgeButton/code.js', 'u:dev:QQX/code.js', 'u:dev:QuickComments/code.js', 'u:dev:QuickDelete/code.js', 'u:dev:QuickThreads/code.js', 'u:dev:RecentChangesMultiple/code.2.js', 'u:dev:RevealAnonIP/usercode.js', 'u:dev:SignatureCheck/code.js', 'u:dev:ViewRemoved/code.js', 'u:dev:View_Source/code.js', 'u:dev:WallGreetingButton/code.js', 'u:kocka:MediaWiki:AjaxCommentDelete/code.js', 'u:kocka:MediaWiki:AjaxThreadDelete/code.js', 'u:kocka:MediaWiki:RedirectMessageWall/code.js', 'u:navid:MediaWiki:BadWords.js', 'u:runescape:User:Joeytje50/tabinsert.js', 'u:shining-armor:MediaWiki:ChatTags/code.js', 'u:starmanw:MediaWiki:MultiUpload/code.js', 'u:starmanw:MediaWiki:QuickLogs/code.js' ] });

//*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?limit=50",        "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*/ $(function { $('Multi-Upload').insertBefore('.WikiaForm fieldset'); }); $(function { $('Super Uploader').insertBefore('.WikiaForm fieldset'); }); $(function { $('Edit Page').insertBefore('.WikiaForm fieldset'); }); $(function { $('Raw Format').insertBefore('.WikiaForm fieldset'); }); $(function { $('Unused Files</a></li>').insertBefore('.WikiaForm fieldset'); }); $(function { $('<a href= "/wiki/Special:WantedPages">Unused Files</a></li>').insertBefore('.WikiaForm fieldset'); }); $(function { $('<a href= "/wiki/Special:WantedFiles">Unused Files</a></li>').insertBefore('.WikiaForm fieldset'); }); /* Adds link to userpage in account naviagtion menu */ $(function { $('<a href= "?action=edit">Edit Page</a></li>').insertBefore('.AccountNavigation .subnav li:first'); }); $(function { $('<a href= "?action=raw">Raw Format</a></li>').insertBefore('.AccountNavigation .subnav li:first'); }); $(function { $('<a href= "?action=purge">Purge the Page</a></li>').insertBefore('.AccountNavigation .subnav li:first'); }); /* Adds link to userpage in account naviagtion menu */ $(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'); }); /* Adds link to userpage in account naviagtion menu */ $(function { $('<a href="/wiki/c:steven-universe:User:Ditto_Creeper_Bot/DPL">Duplicates</a></li>').insertBefore('.AccountNavigation .subnav li:first'); }); $(function { $('<a href="/wiki/c:steven-universe:User:Ditto_Creeper_Bot/IL">Uncategorized</a></li>').insertBefore('.AccountNavigation .subnav li:first'); }); $(function { $('<a href= "/wiki/Special:UnusedFiles">Unused Files</a></li>').insertBefore('.AccountNavigation .subnav li:first'); }); $(function { $('<a href= "/wiki/Project:ListFiles">List Files</a></li>').insertBefore('.AccountNavigation .subnav li:first'); }); $(function { $('<a href= "/wiki/Special:BlankPage?blankspecial=MultiUpload">Super Uploader</a></li>').insertBefore('.AccountNavigation .subnav li:first'); });

/* 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:dev:MediaWiki:RecentChangesMultiple/code.2.js"    ] });

importScriptPage('DupImageList/code.js', 'dev'); importArticles({   type: "script",    articles: [        "u:dev:ListFiles/code.js", // ListFiles from Dev Wiki        'u:josephhawk:User:Josephyr/categorycleanup.js',        'u:josephhawk:User:Josephyr/file.js',        'u:josephhawk:User:Josephyr/filecleanup.js',        'u:josephhawk:User:Josephyr/linksweeper.js',        'u:josephhawk:User:Josephyr/redirects.js',        'u:josephhawk:User:Josephyr/tc.js',    ] });

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

if (mw.config.get('wgCanonicalSpecialPageName') === 'Chat') { importScriptPage('User:Ditto_Creeper_Bot/chat.js', 'su'); }

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

/*Loading Chat Plugins Globally*/ ChatEntryPoint.onClickChatButton = function {   var boom = window.open("/wiki/Special:Chat","wikiachat",mw.config.get("wgWikiaChatWindowFeatures")); boom.onload = function { importScriptPage("User:Ditto Creeper Bot/chat.js", "su"); }; };