User:Irukaza/common.js:修订间差异
跳到导航
跳到搜索
imported>=海豚= 无编辑摘要 |
imported>=海豚= 无编辑摘要 |
||
第3行: | 第3行: | ||
srch.parentElement.insertBefore(spanobj,srch); | srch.parentElement.insertBefore(spanobj,srch); | ||
spanobj.innerHTML="<a href=\"#/talk\" id=\"toptool\">讨论<\/a> · <a href=\"/index.php?title=pagename&action=info\" id=\"toptool\">信息<\/a> · <a href=\"/特殊:链入页面/pagename\" id=\"toptool\">相关<\/a> · <a href=\"#\" id=\"toptool\">下载APP<\/a>"; | spanobj.innerHTML="<a href=\"#/talk\" id=\"toptool\">讨论<\/a> · <a href=\"/index.php?title=pagename&action=info\" id=\"toptool\">信息<\/a> · <a href=\"/特殊:链入页面/pagename\" id=\"toptool\">相关<\/a> · <a href=\"#\" id=\"toptool\">下载APP<\/a>"; | ||
$('#toptool').after('<li id="ca-editmoegirl"><span class="mw-editmoegirl"><a href="//zh.moegirl.org.cn/index.php?title='+mw.util.wikiUrlencode(mw.config.get('wgPageName'))+'&action=edit" title="前往萌娘百科编辑此条目">在萌娘百科编辑</a></span></li>'); |
2021年8月19日 (四) 10:22的版本
spanobj=document.createElement("span");
srch=document.getElementById("page-actions");
srch.parentElement.insertBefore(spanobj,srch);
spanobj.innerHTML="<a href=\"#/talk\" id=\"toptool\">讨论<\/a> · <a href=\"/index.php?title=pagename&action=info\" id=\"toptool\">信息<\/a> · <a href=\"/特殊:链入页面/pagename\" id=\"toptool\">相关<\/a> · <a href=\"#\" id=\"toptool\">下载APP<\/a>";
$('#toptool').after('<li id="ca-editmoegirl"><span class="mw-editmoegirl"><a href="//zh.moegirl.org.cn/index.php?title='+mw.util.wikiUrlencode(mw.config.get('wgPageName'))+'&action=edit" title="前往萌娘百科编辑此条目">在萌娘百科编辑</a></span></li>');