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) } function bpWatchifnecessary { if (wgAction == "edit") {   if (skin == "answers" && wgIsQuestion && wgIsAnswered == false) {     bpWatch }    else if (wgNamespaceNumber == 110) {      bpWatch }    else if (wgNamesaceNumber / 2 == Math.floor(wgNamespaceNumber / 2) && wgCurRevisionId == false) {      bpWatch }    else {      bpWatch }  }  if (wgPageName == "Special:Upload" || wgPageName == "Special:CreatePage") {   bpWatch } } addOnloadHook(bpWatchifnecessary)