More actions
Content deleted Content added
No edit summary |
No edit summary |
||
(5 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
// Inject banner |
// Inject banner |
||
var img = document.createElement('img'); |
var img = document.createElement('img'); |
||
Line 6: | Line 7: | ||
bannerContainer.insertBefore(img, bannerContainer.firstChild); |
bannerContainer.insertBefore(img, bannerContainer.firstChild); |
||
// Set no invert to small banner logo |
|||
// Dark mode icon |
|||
document.getElementById('p-logo').classList.add('mw-no-invert'); |
|||
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);}'; |
Latest revision as of 20:48, 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);
// Set no invert to small banner logo
document.getElementById('p-logo').classList.add('mw-no-invert');