Weitere Optionen
Admin (Diskussion | Beiträge) Keine Bearbeitungszusammenfassung |
Admin (Diskussion | Beiträge) Keine Bearbeitungszusammenfassung |
||
| Zeile 13: | Zeile 13: | ||
$(function() { | $(function() { | ||
var icons = { | var icons = { | ||
'n-Discord': ' | 'n-Discord': '🎮', | ||
'n-Facebook': ' | 'n-Facebook': '📘', | ||
'n-Instagram': ' | 'n-Instagram': '📷', | ||
'n-X': ' | 'n-X': '🐦', | ||
'n-YouTube': ' | 'n-YouTube': '▶️', | ||
'n-Twitch': ' | 'n-Twitch': '🎥', | ||
'n-E-Mail': ' | 'n-E-Mail': '✉️', | ||
'n-Support-us': ' | 'n-Support-us': '❤️' | ||
}; | }; | ||
$.each(icons, function(id, | $.each(icons, function(id, icon) { | ||
$('#' + id + ' a').html( | $('#' + id + ' a').html('<span style="font-size:1.2rem;line-height:1;">' + icon + '</span>'); | ||
}); | }); | ||
}); | }); | ||
Version vom 15. Juni 2026, 11:57 Uhr
mw.hook('wikipage.content').add(function($content) {
const headings = document.querySelectorAll('.citizen-section-heading');
if (headings.length === 0) return;
const sections = document.querySelectorAll('.citizen-section');
sections.forEach(function(section, index) {
if (index === 0) return; // Einleitungstext überspringen
section.hidden = 'until-found';
});
});
// Social Icons in Sidebar ersetzen
$(function() {
var icons = {
'n-Discord': '🎮',
'n-Facebook': '📘',
'n-Instagram': '📷',
'n-X': '🐦',
'n-YouTube': '▶️',
'n-Twitch': '🎥',
'n-E-Mail': '✉️',
'n-Support-us': '❤️'
};
$.each(icons, function(id, icon) {
$('#' + id + ' a').html('<span style="font-size:1.2rem;line-height:1;">' + icon + '</span>');
});
});