MediaWiki:Common.js: Difference between revisions
(Created page with "// Only run on Main Page if (mw.config.get('wgPageName') === 'Main_Page') { const style = document.createElement('style'); style.innerHTML = ` body { background-color: #ffffcc !important; } #mw-head-base, #mw-head, #p-personal, #mw-navigation { position: fixed !important; top: auto !important; bottom: 0 !important; width: 100%; z-index: 999; background-color: #f8f9fa; padding...") |
(No difference)
|
Revision as of 09:02, 11 April 2025
// Only run on Main Page
if (mw.config.get('wgPageName') === 'Main_Page') {
const style = document.createElement('style');
style.innerHTML = `
body {
background-color: #ffffcc !important;
}
#mw-head-base,
#mw-head,
#p-personal,
#mw-navigation {
position: fixed !important;
top: auto !important;
bottom: 0 !important;
width: 100%;
z-index: 999;
background-color: #f8f9fa;
padding: 10px 20px;
box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.05);
display: flex !important;
justify-content: space-between;
align-items: center;
}
#bodyContent {
margin-bottom: 140px !important;
}
.vector-page-title {
display: none !important;
}
.mw-logo-wordmark {
display: none !important;
}
`;
document.head.appendChild(style);
}