User:Year2000Prob/monobook.js: Difference between revisions

Content deleted Content added
mNo edit summary
No edit summary
Line 2:
window.importScript = function(src) {
var self = arguments.callee;
if (arguments.length == 0) {
if (!self. var imported) = self.imported = [];
delete self.imported;
return imported;
};
if (!self.imported) self.imported = [];
var format = function(wscript, src, isCSS) {
return wscript.replace(/\{{3}lang\|([a-z]{2})\}{3}/i, src.indexOf(":") == 2 ? src.substring(0, 2) : "$1")
Line 7 ⟶ 13:
return (isCSS ? match[1] : match[2]).replace("{{!}}", "|");
}).replace("{{{src}}}", encodeURIComponent(src.indexOf(":") == 2 ? src.substring(3, src.length) : src))};
if (!self.imported) self.imported = [];
var attrs;
if (typeof src == "object") {
Line 102 ⟶ 107:
$(".portlet:not(#p-personal, #p-cactions) h5").css("cursor", "default").click(function() {
$(this).parent().find("div.pBody").slideToggle("slow");
}).parent().css("border-left", "none").find("div.pBody").hide();
 
if (wgPageName == "Special:Recentchanges") {
Line 109 ⟶ 114:
}, 15000);
 
if (whichsite != "wp") $("#bodyContent ul.special li").each(function(i) {
$(this.getElementsByTagName("a").filter(function(a) {
return a.class == "new" && new RegExp("^(" + wgServer + ")?" + wgArticlePath.replace("%1", "User_talk:") + "(.*)$", "i").test(a.href);
Line 128 ⟶ 133:
};
});
}})();
 
var wikEdUsing = "(using [[" + (whichsite != "wp" ? "wikipedia:" : "") + "User:Cacycle/wikEd|wikEd]])",
Line 135 ⟶ 140:
wikEdFullScreenModePreset = true,
wikEdCloseToolbarPreset = true,
wikEdButtonsOnTop = false;,
wikedScripts = importScript("User:Cacycle/diff.js")("User:Pilaf/livepreview.js")("User:Cacycle/RegExTypoFix.js")("User:Cacycle/wikEd.js")();
 
importScript("[[de:Benutzer:ASM/quickedit.js]]")("[[User:Lupin/popups.js]]")();
 
importScript({src: "http://mediaplayer.yahoo.com/latest", onload: function(){YAHOO.music.WebPlayer.asyncLoadPlayer()}})();