User:本森级7号舰拉菲/common.js
跳到导航
跳到搜索
预览加载中...

- //星章
- mw.loader.using( ['ext.wikiLove.defaultOptions','ext.wikiLove.local'], function() {
- $.wikiLoveOptions.types.mgpSpecial.subtypes.id = {
- fields: ["message"],
- option: "碧蓝航线优秀指挥官星章",
- descr: "感谢您对碧蓝航线专题作出的突出贡献!",
- header: "给您一个星章!",
- title: "碧蓝航线优秀指挥官星章" ,
- image: "碧蓝航线优秀指挥官星章.png"
- };
- });
- //快捷代码栏
- mw.loader.load('/index.php?title=User:本森级7号舰拉菲/js/charinsert.js&action=raw&ctype=text/javascript');
- //积压工作快捷图标
- mw.loader.load('/index.php?title=User:星海子/js/label.js&action=raw&ctype=text/javascript');
- //热猫
- mw.loader.load('https://zh.moegirl.org.cn/index.php?title=MediaWiki:Gadget-HotCat.js&action=raw&ctype=text/javascript');
- //高亮一方通行
- if (!["submit", "edit"].includes(mw.config.get("wgAction"))) {
- $('#content *, #mw-body-container *').each(function () {
- if ($(this).clone().children().remove().end().text().includes("\u266f")) {
- $(this).html($(this).html().replace(/(\u266f{2,})/g, '<span style="background:#ccff00;font-weight:bolder;color:black !important">$1</span>'));
- }
- });
- }
- //批量清空条目缓存
- mw.loader.load("/index.php?title=User:BearBin/js/OneKeyPurge.js&action=raw&ctype=text/javascript");
- //快速对比差异
- mw.loader.load('/index.php?title=User:Nzh21/js/QuickDiff.js&action=raw&ctype=text/javascript');
- //递归查找分类内所有子分类
- mw.loader.load("/index.php?title=User:BearBin/js/Cat-in-Tree.js&action=raw&ctype=text/javascript");
- //快速感谢
- mw.loader.load("/index.php?title=User:BearBin/js/QuickThank.js&action=raw&ctype=text/javascript");
- // 编辑框代码高亮(旧版,临时措施)
- //mw.loader.load("https://cdn.jsdelivr.net/gh/MoegirlPediaInterfaceAdmins/MoegirlPediaInterfaceCodes@b813cb7fdda4f1c7a0f30f682ff5c1c30256bca1/src/gadgets/wikieditor-highlight/MediaWiki%3AGadget-wikieditor-highlight.js");
- //桌面级推送萌百通知
- mw.loader.load("//mzh.moegirl.org.cn/index.php?title=U:鬼影233/notification.js&action=raw&ctype=text/javascript");