More actions
Content deleted Content added
No edit summary |
No edit summary |
||
Line 7: | Line 7: | ||
// Dark mode icon |
// Dark mode icon |
||
var liElement = document. |
var liElement = document.getElementById("pt-darkmode"); |
||
var firstSpan = liElement.querySelector('span'); |
var firstSpan = liElement.querySelector('span'); |
||
firstSpan. |
firstSpan.innerText = ''; // Keeping it blank |
||
firstSpan.style.background-image = 'url(/w/load.php?modules=skins.vector.icons&image=star&format=original&lang=en&skin=vector-2022&version=mvyy1);}'; |
firstSpan.style.background-image = 'url("/w/load.php?modules=skins.vector.icons&image=star&format=original&lang=en&skin=vector-2022&version=mvyy1");}'; |
Revision as of 04:28, 16 May 2024
// Inject banner
var img = document.createElement('img');
img.src = 'https://static.miraheze.org/blackorchestrawiki/5/58/Black_Orchestra_Banner.png';
img.className = 'custom-logo';
var bannerContainer = document.querySelector('span.mw-logo-container');
bannerContainer.insertBefore(img, bannerContainer.firstChild);
// Dark mode icon
var liElement = document.getElementById("pt-darkmode");
var firstSpan = liElement.querySelector('span');
firstSpan.innerText = ''; // Keeping it blank
firstSpan.style.background-image = 'url("/w/load.php?modules=skins.vector.icons&image=star&format=original&lang=en&skin=vector-2022&version=mvyy1");}';