MediaWiki:Common.js: Difference between revisions

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("skin-invert");
/*elementToInvert.classList.add("mw-no-invert");*/