WmZilla - Webmaster and Marketplace

The Next Generation Webmaster and Trade Forum

Gently Alert Visitors Using Adblock

jaypanda

New member

0

0%

Status

Offline

Posts

35

Likes

0

Rep

0

Bits

185

3

Months of Service

0%
Hello friends, today while browsing websites, I noticed that even the largest websites in Turkey are now detecting ad blockers and giving warnings to please disable them. In my research on the internet, I found a nice code that works. This code is not mine friends, I placed it yesterday and the time spent on the site did not decrease in any way. The text written was a bit harsh, so I softened it a bit. Code: .swal2-container { z-index: 10000; } function adblockmessage() { swal({ title: 'Adblock Detected!', text: "To ensure a blog can continue its publishing life and its efforts don't go to waste, please disable your ad blocker and refresh the page!", type: 'error', showCancelButton: false, allowOutsideClick: false, confirmButtonColor: '#3085d6', cancelButtonColor: '#d33', confirmButtonText: 'Refresh' }).then((result) => { if (result.value) { location.reload(); } }) }
 

249

6,622

6,642

Top