打开/关闭搜索
搜索
打开/关闭菜单
1.2万
1.8万
94
8万
导航
首页
最近更改
特殊页面
上传文件
随机页面
随机页面
随机歌曲
随机P主
编辑相关
帮助
讨论版
公共沙盒
待修改页面
批量上传文件
友情链接
VCPedia
打开/关闭外观设置菜单
通知
打开/关闭个人菜单
未登录
登录后可编辑和发表评论。
user-interface-preferences
个人工具
创建账号
登录
欢迎加入
本站官方QQ群
!
查看“︁Widget:R-18”︁的源代码
来自Vocawiki
更多语言
查看
阅读
查看源代码
查看历史
associated-pages
Widget
讨论
更多操作
←
Widget:R-18
因为以下原因,您没有权限编辑该页面:
您请求的操作仅限属于该用户组的用户执行:
用户
您没有权限编辑
Widget
命名空间内的页面。
您可以查看和复制此页面的源代码。
<noinclude>来源于已删除的{{假链|zhmoe:Widget:R-18|原始页面已删除}},从[https://web.archive.org/web/20200811012316/https://zh.moegirl.org.cn/MARENOL 相关页面的Wayback Machine存档备份]中恢复,并针对新版MediaWiki加以修改。</noinclude><includeonly> <div id="x18" style="opacity: 0; transition: opacity 0.37s linear;"> <div id="x18Context"> <div id="x18Title"><div id="x18Icon"></div></div> <div class="x18Button"></div> </div> </div> <div class="x18-page-warning" style="position: fixed; top: 0px; left: 0px; z-index: 2"> <a href="/%E9%A6%96%E9%A1%B5">回到首页</a> </div> <script type="text/javascript"> "use strict"; window.RLQ = window.RLQ || []; function showX18Warning({ title, buttons, onYes, onNo }) { $("body").css("overflow", "hidden"); $("#mw-content-text") .css("height", `${$("#mw-content-text").height()}px`).empty(); $("#x18,#x18Style") .find(".x18Button").append(buttons).end() .find("#x18Title").append(title).end() .delay(400) .queue(function () { $(this).css({ opacity: 1, transition: "opacity 0.37s linear"}); $(this).dequeue(); }); if (onYes) $("#x18Yes").on("click", onYes); if (onNo) $("#x18No").on("click", onNo); } window.RLQ.push([["mediawiki.api", "jquery"], async () => { $("#x18,#x18Style").prependTo("body"); $(".x18-page-warning").appendTo(".mw-panel"); $("#mw-content-text").css("transition", "opacity 0.37s linear"); if (mw.config.get("wgUserName") === null) { showX18Warning({ title: "请登录后查看", buttons: decodeURIComponent("%3Cdiv%20id%3D%22x18Yes%22%3E%E6%88%91%E8%A6%81%E7%99%BB%E9%99%86%3C%2Fdiv%3E%3Cdiv%20id%3D%22x18No%22%20class%3D%22x18Button%22%3E%E6%89%8D%E4%B8%8D%E7%90%86%E4%BD%A0%3C%2Fdiv%3E"), onYes: () => { window.location.replace( `https://${location.host}${mw.config.get("wgScriptPath")}/index.php?title=Special:%E7%94%A8%E6%88%B7%E7%99%BB%E5%BD%95&returnto=${encodeURIComponent(mw.config.get("wgPageName"))}` ); }, onNo: () => { window.location.replace( `https://${location.host}${mw.config.get("wgScriptPath")}/${mw.config.get("wgMainPageTitle")}` ); } }); return; } if (!mw.config.get("wgUserGroups").includes("autoconfirmed")) { showX18Warning({ title: "未有足够权限查看", buttons: decodeURIComponent("%3Cdiv%20id%3D%22x18No%22%20class%3D%22x18Button%22%3E%E5%A5%BD%E5%90%A7%E4%B8%8D%E7%9C%8B%3C%2Fdiv%3E"), onNo: () => { window.location.replace( `https://${location.host}${mw.config.get("wgScriptPath")}/${mw.config.get("wgMainPageTitle")}` ); } }); return; } let isBlock = false; let isApiFailure = false; try { isBlock = "blockid" in ( await new mw.Api().post({ format: "json", action: "query", list: "users", ususers: mw.config.get("wgUserName"), usprop: "blockinfo", }) ).query.users[0]; } catch { isApiFailure = true; } if (isApiFailure || isBlock) { showX18Warning({ title: `${isApiFailure ? "无法确认您是否" : "您已"}被封禁,无权查看~`, buttons: decodeURIComponent("%3Cdiv%20id%3D%22x18No%22%20class%3D%22x18Button%22%3E%E5%A5%BD%E5%90%A7%E4%B8%8D%E7%9C%8B%3C%2Fdiv%3E"), onNo: () => { window.location.replace( `https://${location.host}${mw.config.get("wgScriptPath")}/${mw.config.get("wgMainPageTitle")}` ); } }); } else if (window.localStorage.getItem("x18") !== "1") { showX18Warning({ title: "你是否已年满十八岁?", buttons: decodeURIComponent("%3Cdiv%20id%3D%22x18Yes%22%3E%E6%98%AF%3C%2Fdiv%3E%3Cdiv%20id%3D%22x18No%22%20class%3D%22x18Button%22%3E%E5%90%A6%3C%2Fdiv%3E"), onYes: () => { window.localStorage.setItem("x18", "1"); $("#mw-content-text") .css("opacity", 1).delay(400) .queue(function () { $("#mw-content-text").css("transition", "none"); $(this).dequeue(); }); $("#x18") .css("opacity", 0).delay(400) .queue(function () { $("body").removeAttr("style"); $(this).remove(); $(this).dequeue(); }); }, onNo: () => { window.location.replace( `https://${location.host}${mw.config.get("wgScriptPath")}/${mw.config.get("wgMainPageTitle")}` ); } }); } else { $("#x18").remove(); $("#mw-content-text").css("opacity", 1); } }]); </script> <style type="text/css" id="x18Style"> #mw-content-text { opacity: 0; } #x18 { width: 100%; height: 100%; position: fixed; top: 0; background: rgba(0, 0, 0, 0.9); z-index: 999; opacity: 0; } #x18Context { position: relative; margin: 0 auto; margin-top: -40px; top: 50%; width: 240px; height: 80px; background: #444; color: white; border: solid 1px rgb(118, 195, 255); border-radius: 4px; box-shadow: 0 0 5px rgb(118, 195, 255); padding: 12px; } #x18Title { margin: 12px; } #x18Icon { position: relative; border: 8px solid transparent; border-left: 12px solid #fff; float: left; margin: 2px 0; } .x18Button { text-align: center; } .x18Button div { width: 72px; height: 20px; border-radius: 4px; padding: 4px; text-align: center; font-size: 11pt; display: inline-block; cursor: pointer; box-shadow: #777 0 0 22px inset; } .x18Button div:nth-child(2) { margin-left: 26px; } #x18Yes { background: rgb(57, 238, 0); } #x18No { background: rgb(238, 48, 0); } </style> </includeonly>
该页面嵌入的页面:
Template:假链
(
查看源代码
)
Template:假链/style.css
(
查看源代码
)
返回
Widget:R-18
。
查看“︁Widget:R-18”︁的源代码
来自Vocawiki