User:Ursuul/global.js

////////////////////////////////////////////////////////////////////////// /************************************************************************/ /************************** Upload File Button **************************/ /**************************** Author: Nanaki ****************************/ /*************** http://c.wikia.com/User:Nanaki/global.js ***************/ /************************************************************************/ ////////////////////////////////////////////////////////////////////////// $(function {   var newpage = $('.wds-community-header__wiki-buttons a[data-tracking="add-new-page"]');    newpage.clone.attr({href: '/wiki/Special:Upload', title: 'Upload File', 'data-tracking': 'upload'}).insertAfter(newpage)        .find('svg').attr('id', '').html('<path d="M 8.984375 0.98632812 A 1.0001 1.0001 0 0 0 8.203125 1.3828125 L 4.2929688 5.2929688 A 1.0001 1.0001 0 1 0 5.7070312 6.7070312 L 8 4.4140625 L 8 12 A 1.0001 1.0001 0 1 0 10 12 L 10 4.4140625 L 12.292969 6.7070312 A 1.0001 1.0001 0 1 0 13.707031 5.2929688 L 9.7910156 1.3769531 A 1.0001 1.0001 0 0 0 8.984375 0.98632812 z M 2.984375 10.986328 A 1.0001 1.0001 0 0 0 2 12 L 2 16 A 1.0001 1.0001 0 0 0 3 17 L 15 17 A 1.0001 1.0001 0 0 0 16 16 L 16 12 A 1.0001 1.0001 0 1 0 14 12 L 14 15 L 4 15 L 4 12 A 1.0001 1.0001 0 0 0 2.984375 10.986328 z "> '); });//End UFB*/

////////////////////////////////////////////////////////////////////////// /************************************************************************/ /**************************** Import Configs ****************************/ /************************************************************************/ ////////////////////////////////////////////////////////////////////////// /* Ajax Delete */ window.AjaxDelete = { deleteReasons: { 'Housekeeping': 'Housekeeping', 'Marked for deletion': 'Marked for deletion', 'Author request': 'Author request', 'Empty page': 'Empty', 'Irrelevant to Diep.io': 'Irrelevant', 'Broken Redirect': 'Broken Redirect', 'Help:Vandalism': 'Vandalism', 'Help:Spam': 'Spam', 'Other': 'Other' },   imageDeleteReasons: { 'Innapropiate': 'Innapropiate', 'Harassment': 'Harassment', 'Housekeeping/Unused': 'Housekeeping', 'Copyright infringement': 'Copyright', 'Author request': 'Author request', 'Refuse Image': 'Refuse Image' },   autoCheckWatch: true, noUndelete: false };//End AD*/

/* Back to Top Button */ window.BackToTopSpeed = 1500; window.BackToTopStart = 400;//End BtTB*/

/* Talk Notifications */ window.talkWikis = ['diepio', 'zh.diepio', 'zh.diepioidea', 'rings-of-the-master', 'chilly-and-the-gangs-random-stuff'/*, 'dresdenfiles', 'es.diepio', 'ru.diepio', 'fr.diepio', 'tr.diepio', 'pl.diepio', 'pt-br.diepio', 'ko.diepio', 'ja.diepio', 'hu.diepio', 'diepio-conception', 'lightbringer-series', 'community', 'portability', 'communitycouncil', 'cohdev', 'mopeio', 'es.mopeio', 'fr.mopeio', 'pl.mopeio', 'ru.mopeio', 'doblonsio', 'ru.doblonsio', 'deeeep-io', 'pl.deeeep-io', 'geometry-dash', 'tbacontest', 'fallout', 'rezero', 'hordesio', 'blocksio', 'orange-io', 'shadowofmordor', 'bloonsconception', 'team-of-cool-peeps', 'cohdev2', 'town-of-salem', 'mithermages', 'slitherio', 'agario', 'psychokid', 'tes-mods', 'cinder-spires', 'steven-universe', 'spookys-house-of-jump-scares', 'warmetal', 'onceuponatime', 'hillclimbracing', 'driftinio', 'kurofox', 'extreme-test', 'totmgsrocks-creatures-and-stuff', 'the-outstanding-remarkable-robotguy39', 'vstf', 'subnautica-concept'*/]; //window.talkName = 'Talk';//End TN*/

/* Cache Check */ window.cacheSkip = []; window.cacheSkipLimit = 1000; window.topLevelCat = '';//End CC*/

/* Skin Switch */ window.monoBookText = "Switch to Monobook"; window.oasisText = "Switch to Oasis"; window.mobileText = "Switch to Mercury";//End SS*/

/* RevealAnonIP */ window.RevealAnonIP = { permissions : ['user'] };//End RAIP*/

/* WAM Rail */ window.railWAM = { loadOnNamespace: 0, load: true };//End WR*/

/* Mass Effect Configs */ batchDeleteDelay = 250; nukeDeleteReason = "Cleanup (Nuke Script)"; massRenameDelay = 500; massRenameSummary = 'Automatic Process'; massRedirectDelay = 500; massBlockDelay = 500; WHAMDelay = 1000; batchDeleteDelay = 1000; //End MEC*/

////////////////////////////////////////////////////////////////////////// /************************************************************************/ /******************************** Imports *******************************/ /************************************************************************/ ////////////////////////////////////////////////////////////////////////// /* Universal Imports */ importArticles({   type: 'script',    articles: [        'u:cohdev:User:Count_of_Howard/MG.lenny',        'u:dev:AdminDashboard JS-Button/code.js',        'u:dev:AjaxBatchDelete/code.js',        'u:dev:AjaxRedirect/code.js',        'u:dev:AjaxUndo/code.js',        'u:dev:AllPagesHideRedirect/code.js',        'u:dev:AnchoredRollback/code.js',        'u:dev:AntiSoundcloud/code.js',        'u:dev:AutoEditPages/code.js',        'u:dev:BlogLink/code.js',//mark        'u:dev:CleanWantedFiles/code.js',        'u:dev:DiscussionsFeed.js',        'u:dev:EditConflictAlert/code.js',        'u:dev:FindAndReplace/code.js',        'u:dev:Linksweeper/code.js',        'u:dev:MarkBlocked.js',        //'u:dev:MassBlock/code.js',//Conflict with Wikimarks confirmed        'u:dev:MassCategorization/code.js',        'u:dev:MassProtect/code.js',//Test        'u:dev:MassRedirect/code.1.js',        'u:dev:MassRename/code.js', 'u:dev:MassRenameRevert/code.js', 'u:dev:MassUserRights/code.js', 'u:dev:MultipleFileDelete/code.js', 'u:dev:NullEditButton/code.js', 'u:dev:PortableCSSPad/code.js', //'u:dev:PurgeButton/code.js', //'u:dev:RTCL.js', 'u:dev:RedirectManagement/code.js', 'u:dev:Rollback/code.js', 'u:dev:SearchSuggest/code.js', 'u:dev:SeeMoreActivityButton/code.js', 'u:dev:ShowUserGroups.js', 'u:dev:SkinSwitchButton/code.js', 'u:dev:Thread Inspection/code.js', 'u:dev:ToggleTestMode/code.js', 'u:dev:UnhideUserMasthead/code.js', 'u:dev:UnsafeScripts/code.js', 'u:dev:UserActivityTab/code.js', 'u:dev:UserCheck/code.js', 'u:dev:UserTalkNotifications/code.js', 'u:dev:WHAM/code.2.js', 'u:dev:WallGreetingButton/code.js', 'u:dev:Wikimarks/code.js', 'u:dev:WorkingMoreUsersCount.js', 'u:diepio:Miscellaneous/code.js', 'u:kocka:VSTFReport/code.js', 'u:sot:User:Ursuul/common.js', 'u:tes:Common.js/DiscussionsLinks.js',/* Suspect Scripts >.> *///'u:dev:JWB/code.js',//BUGGED*/ 'u:dev:ReferencePopups/code.js' ] });//End UI*/

/* Community Council Workaround */ $(function {    var config = mw.config.get([ "wgCityId", "wgServer" ]);   if ( config.wgCityId === "193260" && config.wgServer === "http://communitycouncil.wikia.com" ) {       importArticles( { // Stylesheets type: "style", articles: [ "u:community:User:Ursuul/common.css", "u:community:User:Ursuul/wikia.css" ]           },            { // Scripts type: "script", articles: [ "u:dev:BackToTopButton/code.js" ]           }        );    } });//End CCW*/

/* Kill Infobox Builder */ if (window.location.pathname.indexOf('Special:InfoboxBuilder') != -1) {    var name = window.location.pathname.split('Special:InfoboxBuilder/')[1];     location.replace(document.URL.replace(window.location.href.split('/wiki/')[1],'Template:'+name+'?action=edit&useeditor=source')); } importScriptPage('Sine/code.js', 'dev');//End KIB*/