「MediaWiki:Common.js」の版間の差分
MediaWikiインターフェイスページ
その他の操作
編集の要約なし |
編集の要約なし |
||
| 2行目: | 2行目: | ||
const subtitle = document.getElementById('mw-content-subtitle'); | const intervalId = setInterval(() => { | ||
const subtitle = document.getElementById('mw-content-subtitle'); | |||
if (subtitle) { | |||
if (subtitle) { | |||
const childNodes = subtitle.childNodes; | |||
for (const node of childNodes) { | |||
if (node.nodeType === Node.TEXT_NODE && node.textContent.trim().length > 0) { | |||
subtitle.removeChild(node); | subtitle.removeChild(node); | ||
} | } | ||
} | } | ||
clearInterval(intervalId); | |||
} | } | ||
} | }, 200); | ||
2025年8月7日 (木) 23:58時点における版
/* ここにあるすべてのJavaScriptは、すべてのページ読み込みですべての利用者に対して読み込まれます */
const intervalId = setInterval(() => {
const subtitle = document.getElementById('mw-content-subtitle');
if (subtitle) {
const childNodes = subtitle.childNodes;
for (const node of childNodes) {
if (node.nodeType === Node.TEXT_NODE && node.textContent.trim().length > 0) {
subtitle.removeChild(node);
}
}
clearInterval(intervalId);
}
}, 200);