User:Quibik/monobook.js

In this article we are going to delve into the exciting world of User:Quibik/monobook.js. From its origins to its relevance today, this topic/person/date has captured the attention of countless individuals throughout history. Through this writing, we will explore its different facets, analyze its impact on society and reflect on its influence in various areas. Without a doubt, User:Quibik/monobook.js is a topic of great interest that deserves to be explored and understood in depth.
// --- editing ---
importScript('User:Apoc2400/refToolbarPlus.js'); // ]
importScript('User:Zocky/SearchBox.js'); // ]
importScript('User:Anomie/ajaxpreview.js'); // ]
importScript('User:Sander Säde/viewsource.js'); // ]
importScript('User:Symplectic Map/spell.js'); // ]

// --- display enhancements ---
importScript('User:Pyrospirit/metadata/projectbanners.js'); // ]
//importScript('User:Anomie/linkclassifier.js'); // ]
//importStylesheet('User:Anomie/linkclassifier.css'); // ]

// --- file descriptions ---
importScript('User:Drilnoth/filescripts.js'); // See ] for details
importScript('User:AWeenieMan/furme.js'); // ]

// --- article tools ---
importScript('User:Pyrospirit/metadata/assesslinks.js'); // ]
importScript('User:Anomie/pagestats.js'); // ]
importScript('User:Dr pda/prosesize.js'); // ]
importScript('User:Sander Säde/assess.js'); // ]

// --- user information ---
importScript('User:Anomie/useridentifier.js'); // ]
importScript('User:Fran Rogers/dimorphism.js'); // ]


importScript('User:Lupin/popups.js'); // ]
popupFixDabs = true;
popupMaxWidth = 500;


// Adds external editing button
$(function() {
	var editTab = document.getElementById("ca-edit");
	if (!editTab) return;
	var editURL = editTab.getElementsByTagName("a").href;
	mw.util.addPortletLink("p-cactions", editURL + "&externaledit=true", "EE", "ca-exted", "External editor", "");
});

/**
 * TemplateScript adds configurable templates and scripts to the sidebar, and adds an example regex editor.
 * @see https://meta.wikimedia.orghttps://wikifreehand.com/en/TemplateScript
 * @update-token ]
 */
$.ajax('//tools-static.wmflabs.org/meta/scripts/pathoschild.templatescript.js', { dataType:'script', cache:true }).then(function() {
	pathoschild.TemplateScript.add([
		// A tool script to correct dash usage in articles.
		{
			name: 'Hyphens → en dash',
			script: function(editor) {
				editor
					.replace(/(p*\d+|\d+th)\s*(?:+|–|—)\s*(\d+|present|\d+th)/ig, '$1–$2')
					.replace(/(january|jan|february|feb|march|mar|april|apr|may|june|jun|july|jul|august|aug|september|sept|october|oct|november|nov|December|dec)(?:+|–|—)(january|jan|february|feb|march|mar|april|apr|may|june|jun|july|jul|august|aug|september|sept|october|oct|november|nov|December|dec)/gi, '$1–$2')
					.replace(/\s+(?:+|–|—)\s+/g, ' – ')
					.setEditSummary('Corrected ].')
					.clickDiff();
			}
		},
		{
			name: 'en dash (basic)',
			script: function(editor) {
				editor
					.replace(/\s+(?:+|–|—)\s+/g, ' – ');
			}
		},
		{
			name: 'name pairs',
			script: function(editor) {
				editor
					.replace(/(+)-(+)/g, '$1–$2')
					.setEditSummary('Corrected ] in name pairs.')
					.clickDiff();
			}
		}
	]);
});


// AutoEd --------------------------------------------------------------------------------
importScript('Wikipedia:AutoEd/core.js'); //Imports the "framework" script needed to make this function

autoEdTag = "Fixing ] using ] and ]";

//Import individual modules for use
importScript('Wikipedia:AutoEd/unicodify.js'); // autoEdUnicodify() converts HTML entities to WikiText
importScript('Wikipedia:AutoEd/isbn.js'); // autoEdISBN() fixes ISBN syntax so that WikiMagic can work
importScript('Wikipedia:AutoEd/wikilinks.js'); // autoEdWikilinks() simplifies and shortens wikilinks where appropriate
importScript('Wikipedia:AutoEd/htmltowikitext.js'); // autoEdHTMLtoWikitext() converts HTML to wikitext
importScript('Wikipedia:AutoEd/headlines.js'); // autoEdHeadlines() fixes common headline errors and renames some headers
importScript('Wikipedia:AutoEd/unicodecontrolchars.js'); // autoEdUnicodeControlChars() converts HTML to wikitext
importScript('Wikipedia:AutoEd/templates.js'); // autoEdTemplates() cleans up templates
importScript('Wikipedia:AutoEd/tablestowikitext.js'); // autoEdTablestoWikitext() replaces HTML tables with wikitables
importScript('Wikipedia:AutoEd/extrabreaks.js'); // autoEdExtraBreaks() removes extra BR tags
importScript('Wikipedia:AutoEd/links.js'); // autoEdLinks() cleans up common link errors
importScript('User:GregU/dashes.js'); // autoEdDashes() corrects dashes

function autoEdFunctions() { //Activates individual modules when "auto ed" tab is clicked
	var txt = document.editform.wpTextbox1;
	txt.value = autoEdUnicodify(txt.value);
	txt.value = autoEdISBN(txt.value);
	txt.value = autoEdWikilinks(txt.value);
	txt.value = autoEdHTMLtoWikitext(txt.value);
	txt.value = autoEdHeadlines(txt.value);
	txt.value = autoEdUnicodeControlChars(txt.value);
	txt.value = autoEdTemplates(txt.value);
	txt.value = autoEdTablestoWikitext(txt.value);
	txt.value = autoEdExtraBreaks(txt.value);
	txt.value = autoEdLinks(txt.value);
	txt.value = autoEdDashes(txt.value);
}