MediaWiki:Editplus.js
Dıqqat: Ózgerislerińiz kóriniwi ushın jańa sazlawlarıńızdı saqlaǵannan keyin brauzerdiń keshin tazalaw kerek:
Google Chrome: Ctrl+Shift+R, Mozilla Firefox: Ctrl+Shift+R, Intenet Explorer: Ctrl+F5, Safari: Cmd+Shift+R, Konqueror: F5, Opera: Tools → Preferences arqalı keshti tazalań.
/*
== Fix edit summary prompt for undo ==
*/
$(document).ready(function () {
if (document.location.search.indexOf("undo=") != -1
&& document.getElementsByName('wpAutoSummary')[0]) {
document.getElementsByName('wpAutoSummary')[0].value='1';
}
})
/*
== Force IP to preview ==
*/
function forcePreview() {
if (mw.config.get('wgUserName') != null) return;
var saveButton = document.getElementById("wpSave");
if (!saveButton) return;
if (location.search.search(/&action=edit/) == -1) return;
saveButton.disabled = true;
saveButton.style.fontWeight = "normal";
document.getElementById("wpPreview").style.fontWeight = "bold";
}
$(document).ready(forcePreview);