Difference between revisions of "User:一位史蒂夫/common.js"

From Moegirlpedia
Jump to: navigation, search
(Created page with "mw.loader.load("//zh.moegirl.org.cn/index.php?title=User:一位史蒂夫/common.js&action=raw&ctype=text/javascript");")
 
(// Edit via Wikiplus)
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
mw.loader.load("//zh.moegirl.org.cn/index.php?title=User:一位史蒂夫/common.js&action=raw&ctype=text/javascript");
+
// 原版common.js见[[User:一位史蒂夫/backup.js]],这里为了防止Access Deny尝试全部使用外链引用js文件。
 +
// 复制的js库见  https://github.com/pysgmy/moegirlpedia/tree/main
 +
mw.loader.load('https://wikiplus.oss-cn-shanghai.aliyuncs.com/Main.development.js');
 +
//mw.loader.load('https://gcore.jsdelivr.net/gh/pysgmy/moegirlpedia@main/Gadget-partrollCount.min.js');
 +
mw.loader.load('https://gcore.jsdelivr.net/gh/pysgmy/moegirlpedia@main/GlobalUsageChecker.min.js');
 +
mw.loader.load('https://gcore.jsdelivr.net/gh/pysgmy/moegirlpedia@main/HideToggle.min.js');
 +
mw.loader.load('https://gcore.jsdelivr.net/gh/pysgmy/moegirlpedia@main/Highlight.min.js');
 +
mw.loader.load('https://gcore.jsdelivr.net/gh/pysgmy/moegirlpedia@main/Label.min.js');
 +
mw.loader.load('https://gcore.jsdelivr.net/gh/pysgmy/moegirlpedia@main/LyricMaker.min.js');
 +
//mw.loader.load('https://gcore.jsdelivr.net/gh/pysgmy/moegirlpedia@main/MarkAsResolved.min.js');
 +
mw.loader.load('https://gcore.jsdelivr.net/gh/pysgmy/moegirlpedia@main/MobileNav.min.js');
 +
mw.loader.load('https://gcore.jsdelivr.net/gh/pysgmy/moegirlpedia@main/Music163Lrc.min.js');
 +
mw.loader.load('https://gcore.jsdelivr.net/gh/pysgmy/moegirlpedia@main/OnlineAdmins.min.js');
 +
mw.loader.load('https://gcore.jsdelivr.net/gh/pysgmy/moegirlpedia@main/PersonalLabel.min.js');
 +
mw.loader.load('https://gcore.jsdelivr.net/gh/pysgmy/moegirlpedia@main/QuickDiff.min.js');
 +
mw.loader.load('https://gcore.jsdelivr.net/gh/pysgmy/moegirlpedia@main/QuickSaveDraft.es2015.min.js');
 +
mw.loader.load('https://gcore.jsdelivr.net/gh/pysgmy/moegirlpedia@main/QuickUndo.min.js');
 +
mw.loader.load('https://gcore.jsdelivr.net/gh/pysgmy/moegirlpedia@main/RefToggle.min.js');
 +
mw.loader.load('https://gcore.jsdelivr.net/gh/pysgmy/moegirlpedia@main/ScrollToBottom.min.js');
 +
mw.loader.load('https://gcore.jsdelivr.net/gh/pysgmy/moegirlpedia@main/Welcome-pysgmy.min.js');
 +
mw.loader.load('https://gcore.jsdelivr.net/gh/pysgmy/moegirlpedia@main/WDCscript.min.js');
 +
mw.loader.load('https://gcore.jsdelivr.net/gh/pysgmy/moegirlpedia@main/Wikiplus-replace.min.js');
 +
mw.loader.load('https://gcore.jsdelivr.net/gh/pysgmy/moegirlpedia@main/Wordcount.min.js');
 +
//mw.loader.load('/index.php?title=User:一位史蒂夫/JS/WikiBreak.js&action=raw&ctype=text/javascript');//强行萌百假期
 +
mw.loader.load('https://gcore.jsdelivr.net/gh/pysgmy/moegirlpedia@main/disambigHelper.min.js');
 +
mw.loader.load('https://gcore.jsdelivr.net/gh/pysgmy/moegirlpedia@main/editConflict.min.js');
 +
mw.loader.load('https://gcore.jsdelivr.net/gh/pysgmy/moegirlpedia@main/lockSummary.min.js');
 +
mw.loader.load('https://gcore.jsdelivr.net/gh/pysgmy/moegirlpedia@main/markblocked.min.js');
 +
mw.loader.load('https://gcore.jsdelivr.net/gh/pysgmy/moegirlpedia@main/mwPanel.min.js');
 +
mw.loader.load('https://gcore.jsdelivr.net/gh/pysgmy/moegirlpedia@main/navbox-link.min.js');
 +
mw.loader.load('https://gcore.jsdelivr.net/gh/pysgmy/moegirlpedia@main/notification.min.js');
 +
mw.loader.load('https://gcore.jsdelivr.net/gh/pysgmy/moegirlpedia@main/pair.min.js');
 +
mw.loader.load('https://gcore.jsdelivr.net/gh/pysgmy/moegirlpedia@main/pxruler.min.js');
 +
mw.loader.load('https://gcore.jsdelivr.net/gh/pysgmy/moegirlpedia@main/quick-save.min.js');
 +
mw.loader.load('https://gcore.jsdelivr.net/gh/pysgmy/moegirlpedia@main/ruby.min.js');
 +
mw.loader.load('https://gcore.jsdelivr.net/gh/pysgmy/moegirlpedia@main/uploader.min.js');
 +
mw.loader.load('https://gcore.jsdelivr.net/gh/pysgmy/moegirlpedia@main/User.min.js');
 +
mw.loader.load('https://gcore.jsdelivr.net/gh/pysgmy/moegirlpedia@main/usergroup.min.js');
 +
mw.loader.load('https://gcore.jsdelivr.net/gh/pysgmy/moegirlpedia@main/utils.min.js');
 +
mw.loader.load('https://gcore.jsdelivr.net/gh/pysgmy/moegirlpedia@main/vcep.min.js');
 +
mw.loader.load('https://gcore.jsdelivr.net/gh/pysgmy/moegirlpedia@main/watchlist-toggle.min.js');
 +
mw.loader.load('https://gcore.jsdelivr.net/gh/pysgmy/moegirlpedia@main/LyricsKaiEditor.min.js');
 +
mw.loader.load('https://gcore.jsdelivr.net/gh/pysgmy/moegirlpedia@main/HotCat.min.js');
 +
mw.loader.load('https://gcore.jsdelivr.net/gh/lovelyCARDINAL/moegirl/MU.min.js');
 +
mw.loader.load('https://gcore.jsdelivr.net/gh/pysgmy/moegirlpedia@main/Gadget-rollback-summary.min.js');
 +
mw.loader.load('https://gcore.jsdelivr.net/gh/pysgmy/moegirlpedia@main/MarkForDeletion-En.min.js');
 +
/*———————————————————————*/
 +
JSconfig.keys['HotCatNoAutoCommit'] = false;
 +
JSconfig.keys['HotCatDelNeedsDiff'] = false;
 +
/*———————————————————————*/
 +
mw.hook("InPageEdit").add(function (ctx) {
 +
    var InPageEdit = ctx.InPageEdit,
 +
        _msg = ctx._msg,
 +
        wgPageName = mw.config.get("wgPageName"),
 +
        wgRevisionId = mw.config.get("wgRevisionId");
 +
    $("#ca-edit").after(
 +
        $("<li>", {
 +
            id: "ca-quick-edit",
 +
            "class": "collapsible"
 +
        }).append(
 +
            $("<span>").append(
 +
                $("<a>", {
 +
                    href: "javascript:void(0)",
 +
                    text: typeof Wikiplus !== "undefined" ? _msg("quick-edit") + "(IPE)" : _msg("quick-edit")
 +
                }).on("click", function () {
 +
                    InPageEdit.quickEdit({
 +
                        page: wgPageName,
 +
                        revision: wgRevisionId
 +
                    });
 +
                })
 +
            )
 +
        )
 +
    );
 +
});

Latest revision as of 21:31, 9 June 2022

// 原版common.js见[[User:一位史蒂夫/backup.js]],这里为了防止Access Deny尝试全部使用外链引用js文件。
// 复制的js库见  https://github.com/pysgmy/moegirlpedia/tree/main
mw.loader.load('https://wikiplus.oss-cn-shanghai.aliyuncs.com/Main.development.js');
//mw.loader.load('https://gcore.jsdelivr.net/gh/pysgmy/moegirlpedia@main/Gadget-partrollCount.min.js');
mw.loader.load('https://gcore.jsdelivr.net/gh/pysgmy/moegirlpedia@main/GlobalUsageChecker.min.js');
mw.loader.load('https://gcore.jsdelivr.net/gh/pysgmy/moegirlpedia@main/HideToggle.min.js');
mw.loader.load('https://gcore.jsdelivr.net/gh/pysgmy/moegirlpedia@main/Highlight.min.js');
mw.loader.load('https://gcore.jsdelivr.net/gh/pysgmy/moegirlpedia@main/Label.min.js');
mw.loader.load('https://gcore.jsdelivr.net/gh/pysgmy/moegirlpedia@main/LyricMaker.min.js');
//mw.loader.load('https://gcore.jsdelivr.net/gh/pysgmy/moegirlpedia@main/MarkAsResolved.min.js');
mw.loader.load('https://gcore.jsdelivr.net/gh/pysgmy/moegirlpedia@main/MobileNav.min.js');
mw.loader.load('https://gcore.jsdelivr.net/gh/pysgmy/moegirlpedia@main/Music163Lrc.min.js');
mw.loader.load('https://gcore.jsdelivr.net/gh/pysgmy/moegirlpedia@main/OnlineAdmins.min.js');
mw.loader.load('https://gcore.jsdelivr.net/gh/pysgmy/moegirlpedia@main/PersonalLabel.min.js');
mw.loader.load('https://gcore.jsdelivr.net/gh/pysgmy/moegirlpedia@main/QuickDiff.min.js');
mw.loader.load('https://gcore.jsdelivr.net/gh/pysgmy/moegirlpedia@main/QuickSaveDraft.es2015.min.js');
mw.loader.load('https://gcore.jsdelivr.net/gh/pysgmy/moegirlpedia@main/QuickUndo.min.js');
mw.loader.load('https://gcore.jsdelivr.net/gh/pysgmy/moegirlpedia@main/RefToggle.min.js');
mw.loader.load('https://gcore.jsdelivr.net/gh/pysgmy/moegirlpedia@main/ScrollToBottom.min.js');
mw.loader.load('https://gcore.jsdelivr.net/gh/pysgmy/moegirlpedia@main/Welcome-pysgmy.min.js');
mw.loader.load('https://gcore.jsdelivr.net/gh/pysgmy/moegirlpedia@main/WDCscript.min.js');
mw.loader.load('https://gcore.jsdelivr.net/gh/pysgmy/moegirlpedia@main/Wikiplus-replace.min.js');
mw.loader.load('https://gcore.jsdelivr.net/gh/pysgmy/moegirlpedia@main/Wordcount.min.js');
//mw.loader.load('/index.php?title=User:一位史蒂夫/JS/WikiBreak.js&action=raw&ctype=text/javascript');//强行萌百假期
mw.loader.load('https://gcore.jsdelivr.net/gh/pysgmy/moegirlpedia@main/disambigHelper.min.js');
mw.loader.load('https://gcore.jsdelivr.net/gh/pysgmy/moegirlpedia@main/editConflict.min.js');
mw.loader.load('https://gcore.jsdelivr.net/gh/pysgmy/moegirlpedia@main/lockSummary.min.js');
mw.loader.load('https://gcore.jsdelivr.net/gh/pysgmy/moegirlpedia@main/markblocked.min.js');
mw.loader.load('https://gcore.jsdelivr.net/gh/pysgmy/moegirlpedia@main/mwPanel.min.js');
mw.loader.load('https://gcore.jsdelivr.net/gh/pysgmy/moegirlpedia@main/navbox-link.min.js');
mw.loader.load('https://gcore.jsdelivr.net/gh/pysgmy/moegirlpedia@main/notification.min.js');
mw.loader.load('https://gcore.jsdelivr.net/gh/pysgmy/moegirlpedia@main/pair.min.js');
mw.loader.load('https://gcore.jsdelivr.net/gh/pysgmy/moegirlpedia@main/pxruler.min.js');
mw.loader.load('https://gcore.jsdelivr.net/gh/pysgmy/moegirlpedia@main/quick-save.min.js');
mw.loader.load('https://gcore.jsdelivr.net/gh/pysgmy/moegirlpedia@main/ruby.min.js');
mw.loader.load('https://gcore.jsdelivr.net/gh/pysgmy/moegirlpedia@main/uploader.min.js');
mw.loader.load('https://gcore.jsdelivr.net/gh/pysgmy/moegirlpedia@main/User.min.js');
mw.loader.load('https://gcore.jsdelivr.net/gh/pysgmy/moegirlpedia@main/usergroup.min.js');
mw.loader.load('https://gcore.jsdelivr.net/gh/pysgmy/moegirlpedia@main/utils.min.js');
mw.loader.load('https://gcore.jsdelivr.net/gh/pysgmy/moegirlpedia@main/vcep.min.js');
mw.loader.load('https://gcore.jsdelivr.net/gh/pysgmy/moegirlpedia@main/watchlist-toggle.min.js');
mw.loader.load('https://gcore.jsdelivr.net/gh/pysgmy/moegirlpedia@main/LyricsKaiEditor.min.js');
mw.loader.load('https://gcore.jsdelivr.net/gh/pysgmy/moegirlpedia@main/HotCat.min.js');
mw.loader.load('https://gcore.jsdelivr.net/gh/lovelyCARDINAL/moegirl/MU.min.js');
mw.loader.load('https://gcore.jsdelivr.net/gh/pysgmy/moegirlpedia@main/Gadget-rollback-summary.min.js');
mw.loader.load('https://gcore.jsdelivr.net/gh/pysgmy/moegirlpedia@main/MarkForDeletion-En.min.js');
/*———————————————————————*/
JSconfig.keys['HotCatNoAutoCommit'] = false;
JSconfig.keys['HotCatDelNeedsDiff'] = false;
/*———————————————————————*/
mw.hook("InPageEdit").add(function (ctx) {
    var InPageEdit = ctx.InPageEdit,
        _msg = ctx._msg,
        wgPageName = mw.config.get("wgPageName"),
        wgRevisionId = mw.config.get("wgRevisionId");
    $("#ca-edit").after(
        $("<li>", {
            id: "ca-quick-edit",
            "class": "collapsible"
        }).append(
            $("<span>").append(
                $("<a>", {
                    href: "javascript:void(0)",
                    text: typeof Wikiplus !== "undefined" ? _msg("quick-edit") + "(IPE)" : _msg("quick-edit")
                }).on("click", function () {
                    InPageEdit.quickEdit({
                        page: wgPageName,
                        revision: wgRevisionId
                    });
                })
            )
        )
    );
});