MediaWiki:Common.js: Difference between revisions
MediaWiki interface page
More actions
No edit summary |
No edit summary |
||
| Line 9: | Line 9: | ||
// 2. Direct inline style override on footer tagline and its bold element | // 2. Direct inline style override on footer tagline and its bold element | ||
$('#footer-tagline, #footer-tagline b, .citizen-footer-tagline, .citizen-footer-tagline b').attr('style', 'color: #009A44 !important;'); | $('#footer-tagline, #footer-tagline b, .citizen-footer-tagline, .citizen-footer-tagline b').attr('style', 'color: #009A44 !important;'); | ||
}); | |||
/* Golden Retriever Wiki Custom Enhancements */ | |||
$(document).ready(function() { | |||
// 1. Set Browser Tab Favicon | |||
var faviconUrl = "https://wiki.goldenretrieverapp.com/images/thumb/a/ad/GRLogo.png/1200px-GRLogo.png?_=20260924164344"; | |||
// Remove default favicon links | |||
$('link[rel*="icon"]').remove(); | |||
// Inject new favicon link into head | |||
$('<link>', { | |||
rel: 'shortcut icon', | |||
type: 'image/png', | |||
href: faviconUrl | |||
}).appendTo('head'); | |||
// 2. Inject Golden Retriever Logo into Footer | |||
var footerText = $('.mw-logo-wordmark'); | |||
if (footerText.length && !$('#footer-logo-img').length) { | |||
footerText.prepend('<img id="footer-logo-img" src="' + faviconUrl + '" style="height: 52px; margin-right: 12px; vertical-align: middle;">'); | |||
} | |||
}); | }); | ||
Revision as of 17:17, 24 September 2026
/* Add logo and set tagline color in footer */
$(document).ready(function() {
// 1. Inject Golden Retriever Logo
var footerText = $('.mw-logo-wordmark');
if (footerText.length && !$('#footer-logo-img').length) {
footerText.prepend('<img id="footer-logo-img" src="https://wiki.goldenretrieverapp.com/images/thumb/a/ad/GRLogo.png/1200px-GRLogo.png?_=20260924164344" style="height: 52px; margin-right: 12px; vertical-align: middle;">');
}
// 2. Direct inline style override on footer tagline and its bold element
$('#footer-tagline, #footer-tagline b, .citizen-footer-tagline, .citizen-footer-tagline b').attr('style', 'color: #009A44 !important;');
});
/* Golden Retriever Wiki Custom Enhancements */
$(document).ready(function() {
// 1. Set Browser Tab Favicon
var faviconUrl = "https://wiki.goldenretrieverapp.com/images/thumb/a/ad/GRLogo.png/1200px-GRLogo.png?_=20260924164344";
// Remove default favicon links
$('link[rel*="icon"]').remove();
// Inject new favicon link into head
$('<link>', {
rel: 'shortcut icon',
type: 'image/png',
href: faviconUrl
}).appendTo('head');
// 2. Inject Golden Retriever Logo into Footer
var footerText = $('.mw-logo-wordmark');
if (footerText.length && !$('#footer-logo-img').length) {
footerText.prepend('<img id="footer-logo-img" src="' + faviconUrl + '" style="height: 52px; margin-right: 12px; vertical-align: middle;">');
}
});