MediaWiki:Monobook.css
From JP1 Remotes Wiki
Note: After publishing, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
/* All CSS here will be loaded for users of the MonoBook skin */
/* Kill inline red borders/outlines/shadows on the Main page link in MonoBook */
#mw-panel a[href*="Main_page"],
#n-mainpage-description > a {
border: none !important;
outline: none !important;
box-shadow: none !important;
}
document.addEventListener('DOMContentLoaded', function () {
const mainLink = document.querySelector('#mw-panel a[href*="Main_page"], #n-mainpage-description > a');
if (mainLink) {
mainLink.removeAttribute('style');
// Keep it clean if something re-injects the style
const obs = new MutationObserver(muts => {
muts.forEach(m => {
if (m.type === 'attributes' && m.attributeName === 'style') {
mainLink.removeAttribute('style');
}
});
});
obs.observe(mainLink, { attributes: true });
}
});