User:Aidan9382/scripts/quickfix-source.js

/* Unused: Category:Pages using deprecated source tags now only contains userspace js/css pages */ var ef = document.editform, tb = ef.wpTextbox1, es = ef.wpSummary; if (tb && tb.style.length == 0 && !(document.title.indexOf(".js") > -1 && document.title.indexOf(" talk:") == -1) && !es.value) { if (tb.value && tb.value.search("source") > -1) { //I dont do JS, so lets just be inefficient tb.value = tb.value.replaceAll(" "); tb.value = tb.value.replaceAll("{{#tag:source","{{#tag:syntaxhighlight"); es.value = "Category:Pages using deprecated source tags (Via js script)"; } }