User:Natg 19/monobook.js

function autoEdTemplates(str) { //MAIN FUNCTION describes list of fixes

//Remove unneeded Template: text from transclusions str = str.replace('The Sixteen-Millimeter Shrine', 'abc');

//Replace redirects to Reflist with Reflist //str = str.replace(/)/gi, '{{Reflist$1'); //str = str.replace(/{{[_ ]*(?:Refs|Reference|Ref-list|Listaref|FootnotesSmall)[_ ]*(\||}})/gi, '{{Reflist$1');

//Replace a long version of Reflist with Reflist //str = str.replace(/]*[ ]+class=['"]*references-small['"]*[^<>]*>[\r\n]*[\r\n]*<\/div>/gim, '{{Reflist}}');

//Replace redirects to about with about //str = str.replace(/{{[_ ]*(?:Otheruses4|Four[_ ]+other[_ ]+uses|Otherusesabout|This2)[_ ]*(\||}})/gi, '{{about$1');

return str; }