User:Beep21/global.js

//quicksearch fix if (wgPageName == "Special:Search" && location.search == "?search=") { location.href = wgServer + wgArticlePath.replace(/$1/,wgMainpage) }

//check "Watch this page" when necessary function bpWatch(bpWatchReason) { //document.getElementsByName("wpWatchthis")[0].checked = true alert('The "Watch this page" checkbox should be clicked for the following reason: ' + bpWatchReason) } if (wgAction == "edit") { if (skin == "answers" && wgIsQuestion && wgIsAnswered == false) {   bpWatch("answering question") }  else {    switch(wgNamespaceNumber) {      case 0,2,4,10,12,502: if (wgCurRevisionId == false) {         bpWatch("new page of a subjectspace") }       break case 1,3,5,9,11,13,15,110,401,503: bpWatch("leaving message") break default: if (wgCurRevisionId == false) {         bpWatch("new page of an unknown namespace") }     }    } } if (wgPageName == "Special:Upload" || wgPageName == "Special:CreatePage") { bpWatch("new page using special page") }