User:Year2000Prob/monobook.js: Difference between revisions

Content deleted Content added
No edit summary
m Maintenance: Replacing legacy global variable (phab:T72470)
 
(One intermediate revision by one other user not shown)
Line 8:
return imported;
};
var attrs, format = function(ns,src){return typeof self.namespaces[ns]=="function"?self.namespaces[ns](src):(self.namespaces[ns]||mw.config.get('wgServer')+mw.config.get('wgScript')+"?title={{{src}}}&action=raw&ctype=text/javascript").replace("{{{src}}}", src)};
if (typeof src == "object") {
attrs = src;
Line 47:
 
importScript.namespaces = {"#default": function(src) {
var v = (function(s) {
return "http://{{{lang}}}.wikipedia.org/w/index.php?title={{{src}}}&action=raw&ctype=text/javascript".replace("{{{lang}}}", function() {
var n = srcs.match(/^([a-z]{2})\:/), langl = n[1];
srcs = srcs.substr(n[0].length); return lang[s, l];
}).replace("{{{src}}}); return ",http://" + v[1] + ".wikipedia.org/w/index.php?title=" + encodeURIComponent(srcv[0].replace(" ", "_"))) + "&action=raw&ctype=text/javascript"}};
 
var Y2P = new Object();