User:GorillaWarfare/script/curlies.js

// This script replaces curly quotes (“”‘’) with straight quotes ("') per the // guidance at MOS:CURLY. /** * TemplateScript adds configurable templates and scripts to the sidebar, and adds an example regex editor. * @see https://meta.wikimedia.org/wiki/TemplateScript * @update-token */ // 	$.ajax('//tools-static.wmflabs.org/meta/scripts/pathoschild.templatescript.js', { dataType:'script', cache:true }).then(function {	pathoschild.TemplateScript.add([		{			name: 'Curlies',			script: function(editor) {				editor					.replace(/[“”]/g, '"') .replace(/[‘’]/g, "'") .options({ minor: true }) .appendEditSummary("replaced curly quotes (“”‘’) with straight quotes (\"') per MOS:CURLY, by script")					.clickDiff;			}		},	]); }); //