Widget:萌百条目:修订间差异
跳到导航
跳到搜索
imported>=海豚= 无编辑摘要 |
imported>=海豚= 无编辑摘要 |
||
第47行: | 第47行: | ||
.replace(/请确信自己已满当地法律许可年龄且心智成熟后再来阅览/g,'最好陪同自己的孩子一起来阅览') | .replace(/请确信自己已满当地法律许可年龄且心智成熟后再来阅览/g,'最好陪同自己的孩子一起来阅览') | ||
.replace(/另请编辑者注意:勿滥用此模板/g,'另请编辑者注意:本页面急待调整以适应本站的年龄段'); | .replace(/另请编辑者注意:勿滥用此模板/g,'另请编辑者注意:本页面急待调整以适应本站的年龄段'); | ||
mw.hook('ve.activationComplete').add(function () { | |||
document.querySelector("#ca-edit.collapsible a").textContent='添加本地化差异'; | document.querySelector("#ca-edit.collapsible a").textContent='添加本地化差异'; | ||
} | }); | ||
} | } | ||
if( (mw.config.get('wgNamespaceNumber') == 1) || (mw.config.get('wgNamespaceNumber') == 3) || (mw.config.get('wgNamespaceNumber') == 7) || (mw.config.get('wgNamespaceNumber') == 9) || (mw.config.get('wgNamespaceNumber') == 11) || (mw.config.get('wgNamespaceNumber') == 13) || (mw.config.get('wgNamespaceNumber') == 15)){ | if( (mw.config.get('wgNamespaceNumber') == 1) || (mw.config.get('wgNamespaceNumber') == 3) || (mw.config.get('wgNamespaceNumber') == 7) || (mw.config.get('wgNamespaceNumber') == 9) || (mw.config.get('wgNamespaceNumber') == 11) || (mw.config.get('wgNamespaceNumber') == 13) || (mw.config.get('wgNamespaceNumber') == 15)){ | ||
mw.hook('ve.activationComplete').add(function () { | |||
document.querySelector("#ca-edit a").textContent='编辑本地讨论'; | document.querySelector("#ca-edit a").textContent='编辑本地讨论'; | ||
document.querySelector("#ca-editmoegirl a").textContent='去萌娘百科讨论'; | document.querySelector("#ca-editmoegirl a").textContent='去萌娘百科讨论'; | ||
} | }); | ||
} | } | ||
}); | }); | ||
</script> | </script> | ||
</includeonly> | </includeonly> |
2021年8月11日 (三) 10:56的版本
Only for {{萌百页面嵌入}}