MediaWiki:Common.js: Difference between revisions
UnrulyJuli3 (talk | contribs) Add footer text |
UnrulyJuli3 (talk | contribs) m Use mw.loader.impl |
||
| Line 1: | Line 1: | ||
const footer = document.querySelector("ul#footer-info"); | mw.loader.impl(() => { | ||
if (footer) { | const footer = document.querySelector("ul#footer-info"); | ||
if (footer) { | |||
const text = document.createElement("li"); | |||
text.innerText = "Jackboxpedia is not affiliated, associated, authorized, endorsed by, or in any way officially connected with Jackbox Games, Inc., or any of its subsidiaries or its affiliates."; | |||
} | footer.append(text); | ||
} | |||
}); | |||
Latest revision as of 02:50, 26 August 2024
mw.loader.impl(() => {
const footer = document.querySelector("ul#footer-info");
if (footer) {
const text = document.createElement("li");
text.innerText = "Jackboxpedia is not affiliated, associated, authorized, endorsed by, or in any way officially connected with Jackbox Games, Inc., or any of its subsidiaries or its affiliates.";
footer.append(text);
}
});