MediaWiki:Common.js: Difference between revisions
No edit summary |
Add permanent favicon |
||
| Line 674: | Line 674: | ||
addImpressumToFooter(); | addImpressumToFooter(); | ||
} | } | ||
})(); | |||
// ===== Permanent Favicon ===== | |||
(function() { | |||
document.querySelectorAll('link[rel="icon"], link[rel="shortcut icon"]').forEach(function(el) { | |||
el.parentNode.removeChild(el); | |||
}); | |||
var link = document.createElement('link'); | |||
link.rel = 'icon'; | |||
link.type = 'image/png'; | |||
link.href = 'https://alphax.wiki/images/2/26/Favicon.png'; | |||
document.head.appendChild(link); | |||
})(); | })(); | ||