Template: WhatLinksHere: Difference between revisions
From ASDSO Dam Safety Toolbox
No edit summary |
No edit summary |
||
Line 31: | Line 31: | ||
content.body.getElementsByTagName("footer")[0].style.display = "none"; | content.body.getElementsByTagName("footer")[0].style.display = "none"; | ||
// Show | // Show | ||
const newHeader = document.createElement("h4"); | |||
newHeader.appendChild(document.createTextNode("What links here")); | |||
iframeWin.contentWindow.document.getElementById('mw-content-text').insertBefore(newHeader, container.firstChild); | |||
iframeWin.style.display="block"; | iframeWin.style.display="block"; | ||
}); | }); |
Revision as of 15:26, 10 July 2023
Usage
What links here