MediaWiki:Common.js:修订间差异
MediaWiki界面页面
更多操作
无编辑摘要 |
小无编辑摘要 |
||
| 第1行: | 第1行: | ||
mw.hook('wikipage.content').add(function() { | mw.hook('wikipage.content').add(function() { | ||
var footerHtml = '<div style="width:100%; margin-top:20px; display:flex; justify-content:space-between;">' + | |||
if (document.getElementById('global-footer-links')) { | |||
return; | |||
} | |||
var footerHtml = '<div id="global-footer-links" style="width:100%; margin-top:20px; display:flex; justify-content:space-between;">' + | |||
'<div><a href="https://new.pvzhe.wiki/index.php?title=特殊:创建账户&returnto=首页">加入我们</a></div>' + | '<div><a href="https://new.pvzhe.wiki/index.php?title=特殊:创建账户&returnto=首页">加入我们</a></div>' + | ||
'<div><a href="https://www.pvzhe.com/new">前往官网以了解更多游戏信息</a></div>' + | '<div><a href="https://www.pvzhe.com/new">前往官网以了解更多游戏信息</a></div>' + | ||
'</div>'; | '</div>'; | ||
var $ | var $contentArea = $('#mw-content-text, .mw-body-content, #content'); | ||
if ($ | if ($contentArea.length) { | ||
$ | $contentArea.append(footerHtml); | ||
} | } | ||
}); | }); | ||
2026年3月21日 (六) 04:34的版本
mw.hook('wikipage.content').add(function() {
if (document.getElementById('global-footer-links')) {
return;
}
var footerHtml = '<div id="global-footer-links" style="width:100%; margin-top:20px; display:flex; justify-content:space-between;">' +
'<div><a href="https://new.pvzhe.wiki/index.php?title=特殊:创建账户&returnto=首页">加入我们</a></div>' +
'<div><a href="https://www.pvzhe.com/new">前往官网以了解更多游戏信息</a></div>' +
'</div>';
var $contentArea = $('#mw-content-text, .mw-body-content, #content');
if ($contentArea.length) {
$contentArea.append(footerHtml);
}
});