User:Punnoosem/monobook.js

window.popupStructure = 'lite'; window.popupMaxWidth=false; window.popupInitialWidth=false; window.popupImages=false; window.popupMaxPreviewSentences=5; window.removeTitles=true; window.popupSubpopups=false; window.popupPreviewFirstParOnly=false; var message, x; $wgNamespacesWithSubpages=true; $wgRawHtml=true; //alert(document.referrer); //alert($_SERVER['HTTP_REFERER']); // document.getElementById("ca-edit").style.display = "none"; //alert("closing page"); //window.close; //window.location.href = "http://www.w3schools.com";

try { if ( mw.config.get( 'wgPageName').endsWith("_RS") || mw.config.get( 'wgPageName').endsWith("PRD")) { window.popupPreviewFirstParOnly=true; } else { var node = document.querySelector('[title="Edit this page [alt-shift-e]"]'); node.style.display = "none"; window.popupPreviewFirstParOnly=false; } wfLoadExtension( 'Comments' ); }catch(err) { message.innerHTML = "Input " + err; }