注意:在保存之后,您可能需要清除浏览器缓存才能看到所作出的变更的影响。
?_=1
来访问最新页面。https://zh.moegirl.org.cn/User:YeeeeePtrSudo/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")); } } ); }); }); } if ( /Macintosh|iPhone|iPad/.test(navigator.userAgent) ) { mw.loader.addStyleTag('.wenzimohu, .wenzimohu * { transition-duration: 0.75s; }'); mw.hook('wikipage.content').add(function ($content) { $content.find(".wenzimohu , .wenzimohu *").filter(function () { return $(this).css("color") == "rgba(0, 0, 0, 0)"; }).hover(function () { $(this).css( "color", ($(this).css("text-shadow").match(/rgb\(.*?\)/) || ["inherit"])[0]); }, function () { $(this).css("color", "rgba(0, 0, 0, 0)"); }); }); } mw.loader.load('/index.php?title=User:AnnAngela/js/userStatus.js&action=raw&ctype=text/javascript'); var tag = document.getElementById("bodyContent"); var content = tag.innerHTML; if(content.search("泳装") || content.search("不适合未满15岁的读者") || content.search("エロ") || content.search("色色") || content.search("涩涩") || content.search("巨乳") || content.search("工口") || content.search("罗芒阿老师") || content.search("胖次")){ alert("本页面不适合于公众之场合观看。"); }