MediaWiki:Common.js: Difference between revisions
Appearance
hacky solution to get inverted transparent images |
m fix inversion of logos |
||
Line 3: | Line 3: | ||
/* Hacky solution to invert images with transparent backgrounds in dark mode */ | /* Hacky solution to invert images with transparent backgrounds in dark mode */ | ||
var elementToInvert = document.querySelector(".infobox-image > span"); | /*var elementToInvert = document.querySelector(".infobox-image > span");*/ | ||
elementToInvert.classList.add(" | /*elementToInvert.classList.add("mw-no-invert");*/ |
Revision as of 14:00, 30 January 2025
/* Any JavaScript here will be loaded for all users on every page load. */ /* Hacky solution to invert images with transparent backgrounds in dark mode */ /*var elementToInvert = document.querySelector(".infobox-image > span");*/ /*elementToInvert.classList.add("mw-no-invert");*/