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