Content deleted Content added
Year2000Prob (talk | contribs) mNo edit summary |
Year2000Prob (talk | contribs) No edit summary |
||
Line 8:
};
if (!self.imported) self.imported = [];
var format = function(wscript,
return wscript.replace(/\{{3}lang\|([a-z]{2})\}{3}/i,
▲ }).replace("{{{src}}}", encodeURIComponent(src.indexOf(":") == 2 ? src.substring(3, src.length) : src))};
var attrs;
if (typeof src == "object") {
Line 19 ⟶ 17:
delete attrs.src};
if (self.imported[src]) return self;
var
script.setAttribute("
var scriptId = src.substring(2, src.length - 2), path = format(self.namespaces["#default"] || "{{{src}}}", src
▲ var path = format(self.namespaces["#default"] || "{{{src}}}", src, isCSS);
for (var ns in self.namespaces) {
if (src.indexOf(ns + ":") == 0) {
path = format(self.namespaces[ns], src.substring(ns.length + 1)
return path})() : encodeURI(src)));
if (attrs) {
if (typeof attrs.onload == "function"
if (script.addEventListener) script.addEventListener("load", attrs.onload, true);
else script.onreadystatechange = function() {
Line 44 ⟶ 41:
"http://fanstuff.hrwiki.org": "hrfw",
"http://www.clamburger.org": "wuw"
})[wgServer] ||
importScript.namespaces = {"#default": "http://{{{lang|en}}}.wikipedia.org/w/index.php?title={{{src}}}&action=raw&ctype=text/
var Y2P = new Object();
importScript({src: "[[User:Year2000Prob/Y2P.MediaWiki.js]]", onload: function() {
window._onload = window.onload;
window.onload = function() {
if (typeof window._onload == "function") window._onload.apply(this, arguments);
Y2P.AddPortletItem({
text: "Chat
url: "irc://irc.freenode.net/" + (
id: "n-ircchannels",
overwrite: (whichsite == "wp" ? null : "n-wikilink3"),
Line 124 ⟶ 121:
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()}})();
|