MediaWiki:Common.js:修订间差异
外观
无编辑摘要 标签:已被回退 |
无编辑摘要 标签:已被回退 |
||
| 第1行: | 第1行: | ||
mw.loader.using( 'mediawiki.util' ).done( function () { | mw.loader.using('mediawiki.util').done(function () { | ||
if ( document.querySelector( 'meta[name="msvalidate.01"]' ) ) { | if (document.querySelector('meta[name="msvalidate.01"]')) { | ||
return; | return; // 如果标签已存在,就不重复添加 | ||
} | } | ||
var meta = document.createElement( 'meta' ); | var meta = document.createElement('meta'); | ||
meta.name = 'msvalidate.01'; | meta.name = 'msvalidate.01'; | ||
meta.content = '05D84E29E3043E5960A617BFDC45A433'; | meta.content = '05D84E29E3043E5960A617BFDC45A433'; | ||
document.head.appendChild( meta ); | document.head.appendChild(meta); | ||
} ); | }); | ||
2026年10月31日 (六) 07:16的版本
mw.loader.using('mediawiki.util').done(function () {
if (document.querySelector('meta[name="msvalidate.01"]')) {
return; // 如果标签已存在,就不重复添加
}
var meta = document.createElement('meta');
meta.name = 'msvalidate.01';
meta.content = '05D84E29E3043E5960A617BFDC45A433';
document.head.appendChild(meta);
});