User:Sophiedp/global.js

/* Sine settings */ Sine = { spacer: '' };

/* Adds link to userpage in account naviagtion menu */ $(function { $('User page').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; }

/* 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' } );

/* AutoEditDropdown settings */ window.AutoEditDropdownConfig = { expandedAreaContribute: true, expandedAreaEdit: false };

/* QuickCreateUserPage settings */ var qtEnableUserPageOverwrite = true;

/* QuickCreateMessageWallGreeting settings */ var qtEnableMessageWallGreetingOverwrite = true;

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

/* KockaEmoticons help text change */ window.kockaEmoticons = { help: 'Choose an emoticon by clicking on it. Full list.' };

/* QuickModTools settings */ window.QuickModTools = { quickreasons: [ "Misbehaving in chat-please see the Chat rules", "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/talk page" ],	defbanreason: "Misbehaving in chat", defbanlength: "1200" };

/* Standard Edit Summary Settings */ window.dev = window.dev || {}; window.dev.editSummaries = { select: [ '(click to browse)', 'Quick', [ 'Removing vandalism', 'Fixing error(s)', 'Corrected spelling/grammar', 'Corrected formatting/layout' ],       'General', [ 'Testing', 'Testing … will revert shortly, if fails', 'Testing complete', 'Added/removed/corrected wikilink(s)', 'Added/removed/corrected interwiki link(s)', 'Added/removed/corrected external link(s)', 'Cleanup', 'Comment', 'Correction(s), coding', 'Expanded', 'Formatting', 'Grammar', 'Headings (adjusting, etc.)', 'HTML &rarr; wikicode', 'Layout', 'Mini-wikifying', 'Punctuation', 'Redlink removal', 'Refactoring', 'Removing RTE refuse', 'Removing accidental signing due to Sine', 'Re-ordering/re-organizing', 'Reply', 'Revised', 'Signing', 'Spelling', 'Style/layout', 'Suggestion', 'Tidying', 'Updating', 'Wikifying' ],       'Content', [ 'Copy edit, major', 'Copy edit, minor', 'Copy editing', 'Factual correction', 'Neutral point of view', 'Added/removed/corrected quote', 'Added/removed/corrected sources/appearances' ],       'Removal/Reversion', [ 'Reverted vandalism', 'Reverted test edit', 'Reverted vanity edit', 'Removed fanon', 'Removed libel/slander', 'Removed copyvio', 'Removed spam' ],       'Templates', [ 'Added/removed/corrected template(s)', 'Added/removed/corrected infobox(es)', 'Added/removed/corrected disambig template(s)', 'Substituting template(s)', ],       'Categories', [ 'Added category(ies)', 'Alphabetised category(ies)', 'Creating Category page', 'Modified category(ies)', 'Removed category(ies)', 'Removed defunct category(ies)', 'Removed duplicate category(ies)' ],       'Images/Files', [ 'Adding image(s)', 'Modifying image(s)', 'Deleting image(s)' ],       'Videos', [ 'Adding video(s)', 'Modifying video(s)', 'Deleting video(s)' ]   ] };

//—————————————————————————————— ! ! ! ———————————————————————————————// /* Import scripts. NOTE: Place scripts configurations above this line */

/* Some random stuff */ importScriptURI('https://bitbucket.org/!api/2.0/snippets/marlene-melody/nK9oz/aca871b1a097471600475e80cd7322a55f7a963e/files/Global.js');

/* Sine */ importScriptURI('https://gist.githubusercontent.com/LunarTwilight/542e36111f0ebf3d12b09196be6151af/raw/bccc6778522b9d0a62b6115452e06dfcf7f93bd2/sine.js');

/* These must import/load or the world will end */ $(window).load(function {   importArticles({ type: "script", articles: [ 'u:dev:MediaWiki:ColoredColors/code.js', 'u:dev:MediaWiki:ViewRemoved/code.js', 'u:dev:MediaWiki:Rollback/code.js', 'u:dev:MediaWiki:Wikimarks/code.js' ]   }); });

if (wgCityId != "621556") { $(window).load(function {       importArticles({ type: "script", articles: [ 'u:dev:MediaWiki:WallGreetingButton/code.js', 'u:dev:MediaWiki:PurgeButton/code.js' ]       });    });	    /* Chat imports */ if ( wgCanonicalSpecialPageName == 'Chat' ) { $(window).load(function {           importArticles({ type: "script", articles: [ 'u:runescape:User:Joeytje50/tabinsert.js', 'u:shining-armor:MediaWiki:ChatTags/code.js', 'u:dev:MediaWiki:ChatAnnouncements/code.js', 'u:dev:MediaWiki:ChatOptions/code.js', 'u:dev:MediaWiki:ChatTimestamps/code.js', 'u:dev:MediaWiki:PrivateMessageAlert/code.js', 'u:dev:MediaWiki:QuickModTools/loader.js', 'u:dev:MediaWiki:MessageBlocker/code.js', 'u:dev:MediaWiki:!ban/code.js', 'u:dev:MediaWiki:!kick/code.js', 'u:dev:MediaWiki:ChatHacks.js', 'u:dev:MediaWiki:ChatNotifications/code.js' ]           });        });	    } }

/* Semi-important imports/scripts */ $(window).load(function {   importArticles({ type: "script", articles: [ 'u:dev:MediaWiki:NullEditButton/code.js', 'u:dev:MediaWiki:QQX/code.js', 'u:dev:MediaWiki:FastDelete/code.js', 'u:dev:MediaWiki:RevealAnonIP/usercode.js', 'u:dev:MediaWiki:AutoEditDropdown/code.js', 'u:dev:MediaWiki:TabKeyInserter/code.js', 'u:dev:MediaWiki:Nuke/code.js', 'u:dev:MediaWiki:WHAM/code.2.js', 'u:dev:MediaWiki:UnsafeScripts/code.js', 'u:dev:MediaWiki:AntiUnicruft/code.js' ]   }); });

/* Make emoticons script not load on SU wiki chat */ if (wgCityId != "621556") { if ( wgCanonicalSpecialPageName == 'Chat' ) { importScriptPage('MediaWiki:Emoticons/code.js', 'kocka'); } }

/* Make DisplayClock, AdvancedOasisUI, and Standard Edit Summary scripts not load on ATW wiki */ if (wgCityId != "7553") { importScriptPage('MediaWiki:DisplayClock/code.js', 'dev'); importScriptPage('MediaWiki:AdvancedOasisUI/code.js', 'dev'); importScriptPage('MediaWiki:Standard_Edit_Summary/code.js', 'dev'); }

/* Make QuickCreateUserPage and QuickCreateMessageWallGreeting scripts not load on SU wiki */ if (wgCityId != "621556") { importScriptPage('MediaWiki:QuickCreateUserPage/code.js', 'dev'); importScriptPage('MediaWiki:QuickCreateMessageWallGreeting/code.js', 'dev'); }