Detect when a user has got an Adblock plugin enabled in just one line of code and show them a friendly message, another ad, block access or This involves adding to the pages of a website some JavaScript code designed to detect when changes have been made to the page content by an ad blocker.