注意:在保存之后,您可能需要清除浏览器缓存才能看到所作出的变更的影响。
?_=1
来访问最新页面。https://mzh.moegirl.org.cn/User:Vcfch843875618/common.js?_=1
if (/Macintosh|iPhone|iPad/.test(navigator.userAgent)) { mw.hook("wikipage.content").add(function ($content) { $content.find(".colormu").each(function () { const $this = $(this); $this.hover( function () { const bg = $this.data("backgroundColor") || $this.css("background-color"), abg = bg.replace(/\brgba?\((\d+,\s*\d+,\s*\d+).*?\)/, "rgba($1, .17)"); $this.data('backgroundColor', bg).css("background-color", abg); }, function () { if (!$this.hasClass("colormu_toggle_on")) { $this.css("background-color", $this.data("backgroundColor")); } } ); }); }); } mw.loader.load('/index.php?title=User:星海子/js/MassDelete.js&action=raw&ctype=text/javascript'); window.MassDelete = true; mw.loader.load('/index.php?title=User:Vcfch843875618/MassMove.js&action=raw&ctype=text/javascript'); window.MassMove = true; mw.loader.load('/index.php?title=User:星海子/js/markblocked.js&action=raw&ctype=text/javascript'); mw.loader.load('/index.php?title=User:Bbrabbit/js/count.js&action=raw&ctype=text/javascript'); mw.loader.load('/index.php?title=User:AnnAngela/js/watchScripts.js&action=raw&ctype=text/javascript'); mw.loader.load('/index.php?title=User:C8H17OH/simplifyPageName.js&action=raw&ctype=text/javascript'); mw.loader.load('/index.php?title=User:C8H17OH/quick-save.js&action=raw&ctype=text/javascript'); mw.loader.load("/index.php?title=User:Leranjun/js/UtatenSearch.js&action=raw&ctype=text/javascript"); // [[User:Leranjun/js/UtatenSearch.js]]; if (mw.config.get("wgNamespaceNumber") === -1) { $("a").each(function () { var wordStart = $(this).text().indexOf("\u266f"); var wordEnd = $(this).text().lastIndexOf("\u266f"); if (wordStart > -1) { var urlfText = decodeURI($(this).attr("href").substring(1).replace("index.php?title=User:", "").replace("&action=edit&redlink=1", "")); var hrefText = "".concat(urlfText.substring(0, wordStart), "<span style=\"background:#ccff00\">").concat(urlfText.substring(wordStart, wordEnd + 1), "</span>").concat(urlfText.substring(wordEnd + 1)); $(this).html(hrefText); } }); }; if (mw.config.get('wgTitle') === "Mainpage") { mw.loader.using(["mediawiki.api"], $(function () { var api = new mw.Api(); api.get({ action: "parse", title: "Mainpage", text: "{{:Mainpage}}", variant: mw.config.get("wgUserVariant") }).done(function (result) { $("#mw-content-text").after(result.parse.text['*']).remove(); }); })); }; mw.loader.load("//cdn.jsdelivr.net/gh/BearBin1215/MoegirlPedia@master/gadgets/ListEnhancer.min.js"); mw.loader.load("/index.php?title=User:BearBin/js/MassEdit.js&action=raw&ctype=text/javascript");