User:Year2000Prob/monobook.js: Difference between revisions

Content deleted Content added
No edit summary
mNo edit summary
Line 27:
var script = document.createElement("script");
script.setAttribute("type", "text/javascript");
script.setAttribute("src", (self.namespaces && /^\[{2}([^\n\r\t]+)\]{2}$/.test(src) ? (function() {
var source = src.match(/^\[{2}([^\n\r\t]+)(\|[^\n\r\t]*?)?\]{2}$/)[1],
path = format(self.namespaces["#default"] || "{{{src}}}", source);
for (var ns in self.namespaces) {