Jump to content

MediaWiki:Vector-dark.js: Revision history

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

31 March 2025

  • curprev 02:2202:22, 31 March 2025 Cdjensen94 talk contribs 1,211 bytes +1,211 Created page with "const socialMap = { "discord.svg": "#7289da", "twitter.svg": "#1da1f2", "facebook.svg": "#1877f2" }; document.querySelectorAll('img[src$=".svg"]').forEach(img => { const src = img.getAttribute('src'); for (const [key, color] of Object.entries(socialMap)) { if (src.includes(key)) { img.style.filter = `invert(1) sepia(1) saturate(10000%) hue-rotate(${getHue(color)}deg)`; } } }); // You’d need a helper function to translate color to hue — I c..."