Content added Content deleted
No edit summary |
(Update/normalise URLs) |
||
(27 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
mw.loader.load( '/MediaWiki:LastEdited.js?action=raw&ctype=text/javascript' ); |
|||
window.FastDeleteNoConfirm = true; |
|||
mw.loader.load( '/w/index.php?title=MediaWiki:LastEdited.js&action=raw&ctype=text/javascript' ); |
|||
mw.loader.load( '/w/index.php?title=MediaWiki:TagRightsManagement.js&action=raw&ctype=text/javascript' ); |
|||
mw.loader.implement("ext.fandom.ContentReview.legacyLoaders.js@0g2mpqj", function($, jQuery, require, module) { |
|||
/*@nomin*/ |
|||
var t, e, r, n, c, o, i = require; |
|||
require = function(t) { |
|||
return i(t.substr(2)) |
|||
} |
|||
, |
|||
t = window, |
|||
e = mw, |
|||
r = $, |
|||
n = function(t, e) { |
|||
return "".concat(mw.config.get("wgScript"), "?title=").concat(mw.util.wikiUrlencode(e), "&action=raw&ctype=").concat(t) |
|||
} |
|||
, |
|||
c = function(t, e) { |
|||
if ("string" == typeof e) { |
|||
if (-1 === e.indexOf("://") && "//" !== e.substring(0, 2)) { |
|||
var r = mw.config.get("wgServerName").replace(/[^.]+\./, ""); |
|||
return "https://".concat(e, ".").concat(r).concat(t) |
|||
} |
|||
return "".concat(e).concat(t) |
|||
} |
|||
return t |
|||
} |
|||
, |
|||
o = function(t) { |
|||
var e = mw.config.get("wgIsTestModeEnabled") |
|||
, r = t.map((function(t) { |
|||
return e && /\.js$/i.test(t) ? "test:".concat(t) : t |
|||
} |
|||
)); |
|||
return r.filter((function(t) { |
|||
return null === mw.loader.getState(t) |
|||
} |
|||
)).forEach((function(t) { |
|||
return mw.loader.register(t) |
|||
} |
|||
)), |
|||
mw.loader.using(r).catch((function() { |
|||
r.forEach((function(t) { |
|||
return console.log("".concat(t, ": ").concat(mw.loader.getState(t))) |
|||
} |
|||
)) |
|||
} |
|||
)) |
|||
} |
|||
, |
|||
t.importScript = function(t) { |
|||
return e.loader.load(n("text/javascript", t)) |
|||
} |
|||
, |
|||
t.importScriptURI = function(t) { |
|||
return e.loader.load(t) |
|||
} |
|||
, |
|||
t.importStylesheetURI = function(t, e) { |
|||
var n = e ? "media=".concat(e) : ""; |
|||
r('<link rel="stylesheet" type="text/css" href="'.concat(t, '" ').concat(n, ">")).appendTo("head") |
|||
} |
|||
, |
|||
t.importStylesheet = function(e) { |
|||
return t.importStylesheetURI(n("text/css", e)) |
|||
} |
|||
, |
|||
t.appendCSS = function(t) { |
|||
return r('<style type="text/css">'.concat(t, "</style>")).appendTo("head") |
|||
} |
|||
, |
|||
t.importScriptPage = function(e, r) { |
|||
var o = n("text/javascript", e); |
|||
return t.importScriptURI(c(o, r)) |
|||
} |
|||
, |
|||
t.importStylesheetPage = function(e, r) { |
|||
var o = n("text/css", e); |
|||
return t.importStylesheetURI(c(o, r)) |
|||
} |
|||
, |
|||
t.importArticles = function() { |
|||
for (var t = arguments.length, e = new Array(t), r = 0; r < t; r++) |
|||
e[r] = arguments[r]; |
|||
return o(e.flatMap((function(t) { |
|||
return t.article ? [t.article] : t.articles |
|||
} |
|||
))) |
|||
}, |
|||
t.importArticle = t.importArticles, |
|||
module.exports = {}; |
|||
if ( $( '#mw-content .hgroup' ).length > 0 === true ) { |
|||
}, null, null, null); |
|||
mw.loader.load( '/MediaWiki:TagRightsManagement.js?action=raw&ctype=text/javascript' ); |
|||
importArticles({ |
|||
} |
|||
type: 'script', |
|||
if ( $( '#mw-content a[href*="/Special:UpdateProfile"]' ).length > 0 === true ) { |
|||
articles: [ |
|||
$( '#profile-top, #mw-content #cosmos-articleHeader-actions' ).hover( function () { |
|||
'MediaWiki:MultiUpload.js', |
|||
$( '#mw-content #cosmos-articleHeader-actions' ).css( 'visibility', 'visible' ); |
|||
] |
|||
}, function () { |
|||
}); |
|||
$( '#mw-content #cosmos-articleHeader-actions' ).css( 'visibility', 'hidden' ); |
|||
}); |
|||
} |
Latest revision as of 20:54, 17 May 2023
mw.loader.load( '/MediaWiki:LastEdited.js?action=raw&ctype=text/javascript' );
if ( $( '#mw-content .hgroup' ).length > 0 === true ) {
mw.loader.load( '/MediaWiki:TagRightsManagement.js?action=raw&ctype=text/javascript' );
}
if ( $( '#mw-content a[href*="/Special:UpdateProfile"]' ).length > 0 === true ) {
$( '#profile-top, #mw-content #cosmos-articleHeader-actions' ).hover( function () {
$( '#mw-content #cosmos-articleHeader-actions' ).css( 'visibility', 'visible' );
}, function () {
$( '#mw-content #cosmos-articleHeader-actions' ).css( 'visibility', 'hidden' );
});
}