MediaWiki:Common.js
Appearance
Note: After publishing, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
(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();
})();