User:Liangent/Scripts/RemoveForcePreview.js
< User:Liangent | Scripts
注意:保存之后,你必须清除浏览器缓存才能看到做出的更改。Google Chrome、Firefox、Microsoft Edge及Safari:按住⇧ Shift键并单击工具栏的“刷新”按钮。参阅Help:绕过浏览器缓存以获取更多帮助。
function removeForcePreview() {
var saveButton = document.getElementById("wpSave");
var previewButton = document.getElementById("wpPreview");
if (saveButton) {
saveButton.value = "保存本页";
saveButton.disabled = "";
saveButton.style.fontWeight = "bold";
}
if (previewButton) {
previewButton.style.fontWeight = "normal";
}
window.setTimeout("removeForcePreview();", 1000);
}
addOnloadHook(function() {
window.setTimeout("removeForcePreview();", 1000);
});