User:Monohymn/bluecloud.js

/* Force preview for anons */ /* by Marc Mongenet, 2006, fr.wikipedia */ function forcePreview { if (wgAction != "edit") return; saveButton = document.getElementById("wpSave"); if (!saveButton) return; saveButton.disabled = true; saveButton.value = "Save page (use preview first)"; saveButton.style.fontWeight = "normal"; document.getElementById("wpPreview").style.fontWeight = "bold"; } addOnloadHook(forcePreview); /* End of forcePreview */