Content deleted Content added
Year2000Prob (talk | contribs) No edit summary |
Year2000Prob (talk | contribs) No edit summary |
||
Line 8:
return imported;
};
var attrs, format = function(ns,src){return typeof self.namespaces[ns]=="function"?self.namespaces[ns](src):(self.namespaces[ns]||wgServer+wgScript+"?title={{{src}}}&action=raw&ctype=text/javascript").replace("{{{src}}}", src)};
var n = source.match(/^([a-z]{2})\:/);▼
source = source.substr(n[0].length);▼
}).replace("{{{src}}}", encodeURIComponent(source.replace(" ", "_")))};▼
if (typeof src == "object") {
attrs = src;
Line 29 ⟶ 18:
script.setAttribute("src", (self.namespaces && /^\[{2}([^\n\r\t]+)\]{2}$/.test(src) ? (function() {
var source = src.match(/^\[{2}([^\n\r\t]+)\]{2}$/)[1],
path = format(
for (var ns in self.namespaces) {
if (source.indexOf(ns + ":") == 0) {
path = format(
return path})() : encodeURI(src)));
if (attrs) {
Line 57 ⟶ 46:
})[wgServer] || "null";
importScript.namespaces = {"#default": function(src) {
return "http://{{{lang var Y2P = new Object();
importScript({src: "[[en:User:Year2000Prob/Y2P.MediaWiki.js]]", onload: function() {
window._onload = window.onload;
window.onload = function() {
Line 122 ⟶ 115:
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
if (MWVersion
$(this).parent().find("div.pBody").slideToggle("slow")});
Line 133 ⟶ 126:
});
};
});
}})();
var wikEdUsing = "(using [[" + (whichsite != "wp" ? "wikipedia:" : "") + "User:Cacycle/wikEd|wikEd]])",
Line 146 ⟶ 134:
wikEdCloseToolbarPreset = true,
wikEdButtonsOnTop = false,
wikedScripts = importScript("[[en:User:Cacycle/diff.js]]")("[[en:User:Pilaf/livepreview.js]]")("[[en:User:Cacycle/RegExTypoFix.js]]")("[[en:User:Cacycle/wikEd.js]]")();
importScript("[[de:Benutzer:ASM/quickedit.js]]")("[[en: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];
|