User:©TriMoon™/global.js

/** * WikEd */ switch(mw.config.get('wgDBname')){ // Selective disable case "shopheroes": break; default: // install wikipedia:User:Cacycle/wikEd in-browser text editor importScriptURI("https://en.wikipedia.org/w/index.php?action=raw&ctype=text/javascript&title=User:Cacycle/wikEd.js");

// Change the presets of the toggle buttons in the wikEd control bar: var wikEdConfig = { 'useWikEdPreset': true, 'highlightSyntaxPreset': false, 'closeToolbarPreset': false, // Display a button to automatically append "…using wikEd" (or another text) to the edit summaries: 'showUsingButton': true, 'usingPreset': true, 'summaryUsing': '', // 'summaryUsing': 'Dropping A-Bom on Charitwo's head. come fucking change this!', 'refHidePreset': false, 'diffPreset': false, 'fullScreenModePreset': false, // Change the history lengths: 'historyLength': { 'find': 15, 'replace': 15, 'summary': 20 } };

// Disable ctrl-clickable followable links in edit text: //var wikEdFollowLinks = false;

// Add your own summary presets: wikEdConfig.comboPresetOptions = {}; wikEdConfig.comboPresetOptions.summary = [ 'Initial Setup', 'Moving into sub-tree', 'Layout editorial', 'Added Category', 'Changed Category', 'Linkified words', 'my reply', 'linkfix', 'fixing typos', 'removing linkspam', 'reverting test', 'reverting vandalism', 'Code-Cleanup', 'Code-Fixup', 'formatting source text', 'Copy-over from w:c:templates', 'Updated to latest version on w:c:templates', '{wikEdUsing}' ];

/* My addition to enable per-site config changes */ if( typeof(wikEdConfigSite) == 'undefined' ){ var wikEdConfigSite = {}; wikEdConfigSite["wikicities"] = true; } /* per site use: * if( typeof(wikEdConfigSite[wgDBname]) == 'undefined' ){ wikEdConfigSite[wgDBname] = true; wikEdConfig.comboPresetOptions.summary.push("--new text--"); }
 * per site use: */

/* My addition to enable per-site config changes */ } /** * /WikEd */

/** * Wikipedia:Tools/Navigation popups * https://en.wikipedia.org/wiki/Wikipedia:Tools/Navigation_popups#Installation_on_remote_MediaWiki_installations,_or_via_your_global.js */ switch(mw.config.get('wgDBname')){ // Selective disable case "shopheroes": break; default: // wikipedia:Wikipedia:Tools/Navigation_popups mw.loader.load('https://en.wikipedia.org/w/load.php?modules=ext.gadget.Navigation_popups'); window.popupStructure='menus'; window.popupDelay=1.5; window.popupPreviewKillTemplates=false; } /** * /Wikipedia:Tools/Navigation popups */

/** * Combined scripts */	'use strict';
 * (function (module, mw, $, undefined) {

var toLoad, script;

// Declare the scripts we want to load module.scripts = { 'PurgeButton': { page: 'https://dev.wikia.com/wiki/Purgetab', src:	'u:dev:MediaWiki:PurgeButton/code.js' },		'SkinSwitchButton': { page: 'https://dev.wikia.com/wiki/SkinSwitchButton', src:	'u:dev:MediaWiki:SkinSwitchButton/code.js' },		'LastEdited': { page: 'https://dev.wikia.com/wiki/LastEdited', src:	'u:dev:MediaWiki:LastEdited/code.js' },		'TabViewEditLinks': { page: 'https://dev.wikia.com/wiki/TabViewEditLinks', src:	'u:dev:MediaWiki:TabViewEditLinks/code.js' },	};

// Selective remove per wiki switch (mw.config.get('wgDBname')) { case 'shopheroes': delete module.scripts.PurgeButton; break; default: break; }

// Create the final array to load toLoad = new Array; for (script in module.scripts ) { toLoad.push( module.scripts[script].src ); }	importArticles({		type: 'script',		articles: toLoad	});

}(window.myGlobalJS = window.myGlobalJS || {}, mediaWiki, jQuery)); /** * /Combined scripts */