MediaWiki:Common.js: Różnice pomiędzy wersjami
Z Polkopedia
Przejdź do nawigacjiPrzejdź do wyszukiwania (Utworzono nową stronę "→Umieszczony tutaj kod JavaScript zostanie załadowany przez każdego użytkownika, podczas każdego ładowania strony.: // Hide the History tab and history links f…") |
|||
| Linia 8: | Linia 8: | ||
// Hide history links in user toolboxes or sidebars | // Hide history links in user toolboxes or sidebars | ||
mw.util.addCSS('#t-history { display: none !important; }'); | mw.util.addCSS('#t-history { display: none !important; }'); | ||
// Hide "View Source" or "Edit" tabs at the top of pages | |||
mw.util.addCSS('#ca-viewsource, #ca-edit { display: none !important; }'); | |||
} | } | ||
Aktualna wersja na dzień 14:28, 17 maj 2026
/* Umieszczony tutaj kod JavaScript zostanie załadowany przez każdego użytkownika, podczas każdego ładowania strony. */
// Hide the History tab and history links for non-logged-in users
if (mw.config.get('wgUserName') === null) {
// Hide history tabs at the top of pages
mw.util.addCSS('#ca-history { display: none !important; }');
// Hide history links in user toolboxes or sidebars
mw.util.addCSS('#t-history { display: none !important; }');
// Hide "View Source" or "Edit" tabs at the top of pages
mw.util.addCSS('#ca-viewsource, #ca-edit { display: none !important; }');
}