MediaWiki:Gadget-hideFlowthreadDefaultly.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/MediaWiki:Gadget-hideFlowthreadDefaultly.js?_=1}-
萌娘百科界面管理员团队提醒您
本页面由萌娘百科界面管理员团队在其 GitHub 库内进行维护,通过机器人自动生成可被 MediaWiki Gadget 扩展接受的版本并保存到此处。
如果您有任何意见或建议,建议您到技术实现版提出。
- 本页面的内容为自动生成,手动修改可能会被覆盖,源码可在此处查看;
- 最新修订由 U:AnnAngela 与 GH:github-actions[bot] 共同做出,相关 commit 为:103d1a56 - feat: rename (#594) [展开/折叠]
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]📧users.noreply.github.com>
/**
* -------------------------------------------------------------------------
* !!! DON'T MODIFY THIS PAGE MANUALLY, YOUR CHANGES WILL BE OVERWRITTEN !!!
* -------------------------------------------------------------------------
*/
var _addText = '{{GHIACode|page=GHIA:MoegirlPediaInterfaceCodes/blob/master/src/gadgets/hideFlowthreadDefaultly/Gadget-hideFlowthreadDefaultly.js|user=[[U:AnnAngela]]|co-authors=GH:github-actions[bot]|longId=103d1a563ea4ccc8ff29fb55c9bcd88329a56eb5|shortId=103d1a56|summary=feat: rename (#594)|body=<nowiki>Co-authored-by: github-actions[bot] <41898282+github-actions[bot]📧users.noreply.github.com></nowiki>}}';
/* <pre> */
"use strict";
$("#bodyContent").append("<div id=\"flowthread-toggle\" class=\"mw-parser-output\">".concat(wgULS("显示/隐藏评论区", "顯示/隱藏評論區"), "</div>"));
if (location.hash !== "#flowthread") {
$("#flowthread").hide();
}
mw.loader.addStyleTag("#flowthread-toggle { cursor: pointer; border-radius: 5px; background-color: rgba(191, 234, 181, .2); border: 1px solid rgba(18, 152, 34, .47); padding: 1em; text-align: center; margin: 1em 0 .5em; } #bodyContent + #flowthread { margin-top: 0; }");
$("#flowthread-toggle").on("click", function (e) {
e.preventDefault();
var flowthread = $("#flowthread");
if (flowthread.is(":visible")) {
flowthread.slideUp(500);
if (location.hash === "#flowthread") {
location.replace("#/");
}
}
else {
flowthread.slideDown(500);
}
});
$(window).on("hashchange", function () {
if (location.hash === "#flowthread") {
$("#flowthread").show();
}
});
/* </pre> */