User:Year2000Prob/monobook.js: Difference between revisions

Content deleted Content added
No edit summary
mNo edit summary
Line 77:
addTo: "p-cactions"
})();
if (whichsite == ("hrfw"||"wuw")) Y2P.AddPortletItem({
text: "Sysop Alert Button",
url: "http://alert.clamburger.org/",
Line 115:
};
 
// The following code is made obsolete by the more recent versions of MediaWiki
// $(".portlet:not(#p-personal, #p-cactions) h5").css("cursor", "default").click(function() {
$(this).parent().find("div.pBody").slideToggle("slow");
// } $(this).parent().find("div.pBody").cssslideToggle("border-leftslow", "none").hide();
// $(this}).parent().find("div.pBody").slideTogglecss("slowborder-left", "none").hide();
if (/^Special\:(Recent[Cc]hanges|Watchlist)$/.test(wgPageName)) {
Line 129 ⟶ 130:
// I hope this works with Shadowbox
$("#bodyContent img").attr("rel", "shadowbox[All]").each(function() {
return$(this).attr("href", $("#bodyContent img", $.get(self$(this).attr("href")).responseXML).get(0).getAttribute("src"));
var self = $(this), url = (function() {
return $("#bodyContent img", $.get(self.attr("href")).responseXML).get(0).getAttribute("src");
})();
self.attr("href", url);
});
});
Line 146 ⟶ 144:
importScript("[[de:Benutzer:ASM/quickedit.js]]")("[[User:Lupin/popups.js]]")(); // import Popups so it'll work globally if possible, instead of just on Wikipedia
 
var ywmpScript = importScript("http://mediaplayer.yahoo.com/latest")(0)[0];