I tried simple methods to know, if user uses adblock or not ( it is second one - https://ctrlq.org/code/19818-detect-adblock-javascript )
But I have a problem to insert simple ads.js file to src tag in .
I tried ‘public/ads.js’, but still console said that it was not possible to load the js file.
I found a way to detect if an adblock is enabled or not. Simply try fetching an ads javascript file.
Note that this code must be executed in frontend code
Add a text element and set its text to “Adblock in ON”
Then add the following code: