User:AFigureOfBlue/delresized/tag.js

// if(queryString('reducesupplied')) addOnloadHook(function { reduceSupplied; }) function reduceSupplied { var txt = document.getElementById('wpTextbox1'); if(!txt) return; txt.value = txt.value.replace(/\n*\{\{\s?Non-free reduced\s?\|\s?\d?\=?(\d\d\:\d\d\,\s\d\d?\s.*\s\d\d\d\d(\s\(UTC\))?|.*\s\d\d?\s\d\d\d\d)\s?\}\}\n*/ig,''); txt.value = txt.value.replace("=={", "==\n{"); document.getElementById('wpSummary').value += 'Previous version(s) deleted per F5)'; document.getElementById('wpSave').click; }

function queryString(p) { var re = RegExp('[&?]' + p + '=([^&]*)'); var matches; if (matches = re.exec(document.location)) { try { return decodeURI(matches[1]); } catch (e) { } }  return null; }

//