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'/*, '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:AjaxBatchDelete/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:BackToTopButton/code.js',        'u:dev:BlogLink/code.js',        //'u:dev:CleanWantedFiles/code.js',        'u:dev:DiscussionsFeed.js',        'u:dev:FindAndReplace/code.js',        //'u:dev:JWB/code.js',        //'u:dev:Linksweeper/code.js',        'u:dev:MarkBlocked.js',        'u:dev:MassBlock/code.js',        'u:dev:MassCategorization/code.js',        'u:dev:MassProtect/code.js',        '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:Nuke/code.js', 'u:dev:NullEditButton/code.js', 'u:dev:PortableCSSPad/code.js', 'u:dev:RTCL.js', 'u:dev:RailWAM/code.js', 'u:dev:RedirectManagement/code.js', 'u:dev:ReferencePopups/code.js', 'u:dev:RevealAnonIP/usercode.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: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' ] });//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:ExtendedContributeButtonOptions/code.js" ]           }        );    } });//End CCW*/