User:Pintoch/common.js

// importScript('User:Kephir/gadgets/rater.js'); // User:Kephir/gadgets/rater

/** * 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([ // add your own templates or scripts here { name: 'welcome', template: ' ~', position: 'after', editSummary: 'welcome!', forNamespaces: 'user talk' }, { name:'|doi-access=free}}', script: function(editor) { editor .replace(/\|( *)doi-access( *)=( *)free( *)\}\} *\{\{ *(([Oo]pen)|([Ff]ree)) access *\}\}/g, '|$1doi-access$2=$3free$4}}') .appendEditSummary('remove redundant access indicator') .options({ minor: true}) .clickDiff; },       },        { name:'|CiteSeerX=', script: function(editor) { editor .replace(/\|( *)id( *)=( *)\{\{ *[Cc]ite[Ss]eer[Xx] *\| *(doi *=)?([0-9.]+) *\}\}/g, '|$1citeseerx$2=$3$5') .appendEditSummary('change |id= to |citeseerx=') .options({ minor: true}) .clickDiff; },       },        { name:'NIST', script: function(editor) { editor .replace(/https?:\/\/www\.nist\.gov\/dads\/HTML\//g, 'https://xlinux.nist.gov/dads/HTML/') .appendEditSummary('fix broken links to nist\.gov/dads and switch to HTTPS') .options({ minor: true}) .clickDiff; },       },        { name:'www,', script: function(editor) { editor .replace(/\/\/www,/g, '\/\/www.') .appendEditSummary('fix link with "www," instead of "www."') .options({ minor: true}) .clickDiff; },       },	]); }); // /* User:APerson/easy-brfa.js */

importScript( 'User:APerson/easy-brfa.js' ); // Backlink: User:APerson/easy-brfa.js