User:一位史蒂夫/common.js
Note: After saving, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Internet Explorer: Hold Ctrl while clicking Refresh, or press Ctrl-F5
- Opera: Go to Menu → Settings (Opera → Preferences on a Mac) and then to Privacy & security → Clear browsing data → Cached images and files.
// 原版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://cdn.jsdelivr.net/gh/pysgmy/moegirlpedia@main/HideToggle.min.js'); mw.loader.load('https://cdn.jsdelivr.net/gh/pysgmy/moegirlpedia@main/Highlight.min.js'); mw.loader.load('https://cdn.jsdelivr.net/gh/pysgmy/moegirlpedia@main/Label.min.js'); mw.loader.load('https://cdn.jsdelivr.net/gh/pysgmy/moegirlpedia@main/LyricMaker.min.js'); //mw.loader.load('https://cdn.jsdelivr.net/gh/pysgmy/moegirlpedia@main/MarkAsResolved.min.js'); mw.loader.load('https://cdn.jsdelivr.net/gh/pysgmy/moegirlpedia@main/MobileNav.min.js'); mw.loader.load('https://cdn.jsdelivr.net/gh/pysgmy/moegirlpedia@main/Music163Lrc.min.js'); mw.loader.load('https://cdn.jsdelivr.net/gh/pysgmy/moegirlpedia@main/OnlineAdmins.min.js'); mw.loader.load('https://cdn.jsdelivr.net/gh/pysgmy/moegirlpedia@main/PersonalLabel.min.js'); mw.loader.load('https://cdn.jsdelivr.net/gh/pysgmy/moegirlpedia@main/QuickDiff.min.js'); mw.loader.load('https://cdn.jsdelivr.net/gh/pysgmy/moegirlpedia@main/QuickSaveDraft.es2015.min.js'); mw.loader.load('https://cdn.jsdelivr.net/gh/pysgmy/moegirlpedia@main/QuickUndo.min.js'); mw.loader.load('https://cdn.jsdelivr.net/gh/pysgmy/moegirlpedia@main/RefToggle.min.js'); mw.loader.load('https://cdn.jsdelivr.net/gh/pysgmy/moegirlpedia@main/ScrollToBottom.min.js'); mw.loader.load('https://cdn.jsdelivr.net/gh/pysgmy/moegirlpedia@main/Welcome-pysgmy.min.js'); mw.loader.load('https://cdn.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://cdn.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://cdn.jsdelivr.net/gh/pysgmy/moegirlpedia@main/disambigHelper.min.js'); mw.loader.load('https://cdn.jsdelivr.net/gh/pysgmy/moegirlpedia@main/editConflict.min.js'); mw.loader.load('https://cdn.jsdelivr.net/gh/pysgmy/moegirlpedia@main/lockSummary.min.js'); mw.loader.load('https://cdn.jsdelivr.net/gh/pysgmy/moegirlpedia@main/markblocked.min.js'); mw.loader.load('https://cdn.jsdelivr.net/gh/pysgmy/moegirlpedia@main/mwPanel.min.js'); mw.loader.load('https://cdn.jsdelivr.net/gh/pysgmy/moegirlpedia@main/navbox-link.min.js'); mw.loader.load('https://cdn.jsdelivr.net/gh/pysgmy/moegirlpedia@main/notification.min.js'); mw.loader.load('https://cdn.jsdelivr.net/gh/pysgmy/moegirlpedia@main/pair.min.js'); mw.loader.load('https://cdn.jsdelivr.net/gh/pysgmy/moegirlpedia@main/pxruler.min.js'); mw.loader.load('https://cdn.jsdelivr.net/gh/pysgmy/moegirlpedia@main/quick-save.min.js'); mw.loader.load('https://cdn.jsdelivr.net/gh/pysgmy/moegirlpedia@main/ruby.min.js'); mw.loader.load('https://cdn.jsdelivr.net/gh/pysgmy/moegirlpedia@main/uploader.min.js'); mw.loader.load('https://cdn.jsdelivr.net/gh/pysgmy/moegirlpedia@main/User.min.js'); mw.loader.load('https://cdn.jsdelivr.net/gh/pysgmy/moegirlpedia@main/usergroup.min.js'); mw.loader.load('https://cdn.jsdelivr.net/gh/pysgmy/moegirlpedia@main/utils.min.js'); mw.loader.load('https://cdn.jsdelivr.net/gh/pysgmy/moegirlpedia@main/vcep.min.js'); mw.loader.load('https://cdn.jsdelivr.net/gh/pysgmy/moegirlpedia@main/watchlist-toggle.min.js'); mw.loader.load('https://cdn.jsdelivr.net/gh/pysgmy/moegirlpedia@main/LyricsKaiEditor.min.js'); mw.loader.load('https://cdn.jsdelivr.net/gh/pysgmy/moegirlpedia@main/HotCat.min.js'); mw.loader.load('https://cdn.jsdelivr.net/gh/lovelyCARDINAL/moegirl/MU.min.js'); mw.loader.load('https://cdn.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 }); }) ) ) ); });