Ad Blocker Detection
window.onload = function() {
// Check if an ad blocker is enabled
var adBlockEnabled = false;
var testAd = document.createElement('div');
testAd.innerHTML = ' ';
testAd.className = 'ad-slot';
document.body.appendChild(testAd);
window.setTimeout(function() {
if (testAd.offsetHeight === 0) {
adBlockEnabled = true;
}
document.body.removeChild(testAd);
// If ad blocker is detected, display a message
if (adBlockEnabled) {
var messageContainer = document.createElement('div');
messageContainer.innerHTML = '
Ad Blocker Detected!
Please consider supporting us by disabling your ad blocker.