BlockAdBlock inserted in the footer but not working

Hi,

I’m running a self-hosted instance of Discourse with the official Ad plugin. I now want to enable the BlockAdBlock script, as explained there: BlockAdBlock implementation : how?

Unfortunately, it does not work. My Javascript console remains silent (no Security Policy issues, as I allowed ‘unsafe-eval’. I even tried by disabling the CSP.

I ran the same code on a Wordpress website, and it worked perfectly.

I’m guessing I’m missing something on the Discourse side, maye in the settings or in my theme?

I would really appreciate some hints to investigate, with my JavaScript console free of errors, I really have no leads…

Thanks a lot!