MediaWiki:Gadget-site.js

/* Any JavaScript here will be loaded for all users on every page load. */

var isViewingMainPage = (/^MediaWiki(\/..)? - MediaWiki$/.test(document.title)); if (isViewingMainPage) { document.write('/*<![CDATA[*/ #lastmod, #siteSub, h1.firstHeading { display: none !important; } #content { padding-top: 1em; }/*]]>*/ '); }

/* Force preview for anons */ /* by Marc Mongenet, 2006, fr.wikipedia */

function forcePreview { if (wgUserName != null || 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);

/* Ende von forcePreview