sitexw / BlockAdBlock

Allows you to detect the extension AdBlock (and other)
http://fuckadblock.sitexw.fr/blockadblock/
MIT License
614 stars 119 forks source link

AdBlock is enabled even without any AdBlocker installed (and vice-versa) #45

Open Faksprod opened 3 years ago

Faksprod commented 3 years ago

Hello, When trying this link https://fuckadblock.sitexw.fr/blockadblock/ (3.2.1): -> AdBlock is always detected as enabled even without any AdBlocker installed or turned OFF.

When trying this link https://fuckadblock.sitexw.fr/ (3.2.1): -> AdBlock is always detected as disabled with AdBlocker installed and turned ON.

Tried with last versions of Chrome, Safari and Firefox. Any suggestions?

Thanks.

ibrahimmd commented 3 years ago

looks like the sha256 defined at https://fuckadblock.sitexw.fr/blockadblock/ is wrong

Faksprod commented 3 years ago

Thanks for your help @ibrahimmd. Can you be more precise? Suggestions about how to fix it?

ibrahimmd commented 3 years ago

you can download the html for https://fuckadblock.sitexw.fr/blockadblock/ and change:

importFAB.integrity = 'sha256-xjwKUY/NgkPjZZBOtOxRYtK20GaqTwUCf7WYCJ1z69w=';

to:

importFAB.integrity = 'sha256-3zU5Lr4nIt3K/BgGOQMduajtZcPV9elIM/23RDXRp3o=';

and then try to run the modified html on the browser locally. it should work, at least it's working for me.

Faksprod commented 3 years ago

Thanks for your help 🙏 Unfortunately changing integrity key value doesn't change anything... BlockAdBlock doesn't detect any AdBlock plugin. And I have 2 AbBlock plugin enable on the page...

BlackTiger63 commented 2 years ago

Sorry to bump an old thread, but I can confirm the detection is not working correctly. I had it on my forums working flawlessly. But it seems the code, even on the homepage of Fuckadblock doesn't detect anything anymore. It just says adblock is enabled while it's not. Even on your own site.

Now I also just changed the SHA code as suggested and now the blocker windows does popup but.... it pops up no matter if the adblocker is enabled or not.

Just like op your homepage where it keeps saying "enabled" while no adblocker present/active. So you can verify it on your own site too.