MediaWiki:Common.js: Difference between revisions
Appearance
Use the Wingman logo, with permission from the copyright holder Tag: Replaced |
Wiki header is not the Wingman mark |
||
| Line 1: | Line 1: | ||
(function () { | (function () { | ||
var logo = "https://looksmaxxing.wiki/images/5/5f/Wingman_logo.png"; | var logo = "https://looksmaxxing.wiki/images/5/5f/Wingman_logo.png"; | ||
function apply() { | function apply() { | ||
if (mw.config.get("wgPageName") !== "Wingman") return; | |||
var box = document.querySelector(".infobox-image"); | |||
if (box && !box.querySelector("img")) { | |||
var shot = document.createElement("img"); | |||
shot.src = logo; | |||
shot.alt = "Wingman logo"; | |||
shot.width = 220; | |||
box.insertBefore(shot, box.firstChild); | |||
box.querySelectorAll("a.new").forEach(function (a) { a.style.display = "none"; }); | |||
if (mw.config.get("wgPageName") | |||
} | } | ||
} | } | ||
Latest revision as of 06:23, 25 September 2026
(function () {
var logo = "https://looksmaxxing.wiki/images/5/5f/Wingman_logo.png";
function apply() {
if (mw.config.get("wgPageName") !== "Wingman") return;
var box = document.querySelector(".infobox-image");
if (box && !box.querySelector("img")) {
var shot = document.createElement("img");
shot.src = logo;
shot.alt = "Wingman logo";
shot.width = 220;
box.insertBefore(shot, box.firstChild);
box.querySelectorAll("a.new").forEach(function (a) { a.style.display = "none"; });
}
}
if (document.readyState === "loading") document.addEventListener("DOMContentLoaded", apply);
else apply();
})();