MediaWiki:Mobile.js: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
/* All JavaScript here will be loaded for users of the mobile site */ | /* All JavaScript here will be loaded for users of the mobile site */ | ||
addEventListener('load', | addEventListener('load', bg3wikiCheckAdBlock); | ||
function | function bg3wikiCheckAdBlock() { | ||
if (window.fusetag === undefined | if (window.fusetag === undefined) { | ||
bg3wikiHideAdSlots(); | bg3wikiHideAdSlots(); | ||
} | } |
Revision as of 16:30, 9 August 2024
/* All JavaScript here will be loaded for users of the mobile site */
addEventListener('load', bg3wikiCheckAdBlock);
function bg3wikiCheckAdBlock() {
if (window.fusetag === undefined) {
bg3wikiHideAdSlots();
}
}
function bg3wikiHideAdSlots() {
document.body.classList.replace("mw-ads-enabled", "mw-ads-disabled");
}