User:Cuckooman4/statustab.js: Difference between revisions

Content deleted Content added
Cuckooman4 (talk | contribs)
Adding default unchecked
Cuckooman4 (talk | contribs)
Added autosave feature
Line 7:
var statustemplateurl = "StatusTemplate"
var statussyntax = "{{User:" + wgUserName + "/" + statustemplateurl + "|%STATUSPARAMS%}}"
var autosave = false;
 
addOnloadHook(
Line 17 ⟶ 18:
document.getElementById("wpSummary").value = "Changing status: " + statusprompt
document.getElementById("wpMinoredit").checked = false
if((statusprompt != null) && (autosave == true)) {
document.editform.wpSave.click()
}
}
}