2023年政策修订增补工作正在进行中,欢迎参与!
User:YeeeeePtrSudo/common.js
跳转到导航
跳转到搜索
注意:在保存之后,您可能需要清除浏览器缓存才能看到所作出的变更的影响。
- Firefox/Safari:按住“Shift”的同时单击“刷新”,或按“Ctrl-F5”或“Ctrl-R”(Mac为“⌘-R”)
- Google Chrome:按“Ctrl-Shift-R”(Mac为“⌘-Shift-R”)
- Internet Explorer:按住“Ctrl”的同时单击“刷新”,或按“Ctrl-F5”
- Opera:在“工具→首选项”中清除缓存
- 如果您已登录但该页面出现未登录状态,请尝试在地址栏的地址最后添加代码
?_=1
来访问最新页面。 - 添加代码后的本页地址如下:
-{R|https://moegirl.icu/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("本页面不适合于公众之场合观看。");
}