User:Year2000Prob/monobook.js: Difference between revisions

Content deleted Content added
mNo edit summary
No edit summary
Line 120:
};
 
var sidebar = $(".portlet:not(#p-personal, #p-cactions, #p-logo) div.pBody");
sidebar.css("border-left", "none").parent().find("h5").css("cursor", "default");
// The click event is made obsolete by MediaWiki 1.14 and higher
$if (".portlet:not(#p-personal,MWVersion #p-cactions< 1.14) h5"sidebar.hide().cssparent().find("cursor", "defaulth5").click(function() {
if (MWVersion < 1.14) $(this).parent().find("div.pBody").slideToggle("slow")});
}).parent().find("div.pBody").css("border-left", "none")[MWVersion < 1.14 ? "hide" : "show"]();
if (/^Special\:(Recent[Cc]hanges|Watchlist)$/.test(wgPageName)) {