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 beepWatch { document.getElementsByName("wpWatchthis")[0].checked = true } if (wgAction == "edit") { if (skin == "answers" && wgIsQuestion == true && wgIsAnswered == false) {   beepWatch }  else if (wgNamespaceNumber == 0 || 2 || 4 || 10 || 12 || 502 && wgCurRevisionId == false) {    beepWatch } if (wgNamespaceNumber == 1 || 3 || 5 || 9 || 11 || 13 || 15 || 110 || 401 || 503) {   beepWatch } } if (wgPageName == "Special:Upload") { beepWatch }