User:Varnent/common.js

/* global $, pathoschild */

/** * 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: 'change Wikipedia to MediaWiki', script: function(context) { context.helper .replace(/Wikipedia/g,'MediaWiki') .appendEditSummary('MediaWikified') .clickDiff; }		},	]); });