sitexw / BlockAdBlock

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

Fixed issue on adblock detecting on unix devices - case sensitive #21

Closed matrad closed 5 years ago

matrad commented 7 years ago

The script is not working on iOS Devices because the window Parameters are case sensitive.

The Pull request fixes the detection on iOS

chrisbbreuer commented 7 years ago

It seems like then when this change is added it always triggers, even though when no ad blocker is enabled.

matrad commented 7 years ago

Yes, sorry - it was my fault.

The Problem is that the iOS AdBlock Plus Chrome Extension Blocks the Network Traffic for some scripts. If the script is named blockadblock then the AdBlocker is not detected, if we call it fuchadblock then it's working.

sitexw commented 5 years ago

Simply use the "code example" in the readme file.