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

// give the Monaco sidebar a lower size function bpSmsidebar { if(skin == "monaco") {   $("#widget_sidebar,#widget_sidebar *").css("font-size","x-small") } }

// change the "More" link in the "Latest activity" widget to go to the Recent changes function bpLatestactmorechange { if(skin == "monaco") {   $("#community-widget-action-button").attr("href",wgServer + "/wiki/Special:RecentChanges") } }

//run the above functions on DOM ready function bpOnload { bpWatchifnecessary bpSmsidebar bpLatestactmorechange } $(document).ready(bpOnload)