User:Skyvine/common.js

function find_non_curly_brace_citations { var editBox = document.getElementsByName('wpTextbox1')[0]; const matches = editBox.innerHTML.match(/&lt;ref.*?&gt;(?!.*?\{\{.*?\}\}.*?).*?&lt;\/ref&gt;/gi); if (matches != null) { for (var i = 0; i < matches.length; ++i) { $('#bodyContent').prepend('Non-programmatic reference: ' + matches[i] + ' '); }	} }

if (window.location.href.includes("action=edit")) { $('#bodyContent').prepend(   	'Find Non-Programmatic Citations '    ); }