MediaWiki:Common.js: verschil tussen versies
Naar navigatie springen
Naar zoeken springen
Geen bewerkingssamenvatting |
Geen bewerkingssamenvatting |
||
| Regel 4: | Regel 4: | ||
// Get the browser's user agent | // Get the browser's user agent | ||
var userAgent = navigator.userAgent; | var userAgent = navigator.userAgent; | ||
// Check if 'ZFBrowser' is part of the user agent string | // Check if 'ZFBrowser' is part of the user agent string | ||
if (userAgent.includes("ZFBrowser")) { | if (userAgent.includes("ZFBrowser")) { | ||
// | // Select all the elements in a single call and hide them | ||
$('#pt-login').hide | $('#ca-talk, #ca-viewsource, #p-tb, #ca-history, #pt-createaccount, #footer-places-about, #pt-login, #footer-info-lastmod, #n-recentchanges, #n-help-mediawiki').addClass('hide-element'); | ||
} | } | ||
}); | }); | ||
Versie van 13 sep 2024 14:20
/* JavaScript die hier wordt geplaatst heeft invloed op alle pagina's voor alle gebruikers */
$(document).ready(function() {
// Get the browser's user agent
var userAgent = navigator.userAgent;
// Check if 'ZFBrowser' is part of the user agent string
if (userAgent.includes("ZFBrowser")) {
// Select all the elements in a single call and hide them
$('#ca-talk, #ca-viewsource, #p-tb, #ca-history, #pt-createaccount, #footer-places-about, #pt-login, #footer-info-lastmod, #n-recentchanges, #n-help-mediawiki').addClass('hide-element');
}
});