FuckAdBlock | Detects ad blockers | Privacy library
kandi X-RAY | FuckAdBlock Summary
kandi X-RAY | FuckAdBlock Summary
Detects ad blockers (AdBlock, ...)
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of FuckAdBlock
FuckAdBlock Key Features
FuckAdBlock Examples and Code Snippets
Community Discussions
Trending Discussions on FuckAdBlock
QUESTION
I am trying to detect if AdBlock plus is running in firefox, it does not need to work 100% of the time, but I at least want to disable the built in adblockers that come with firefox and chrome.
It looks like the most promising solution is from this blockAdBlock package. They show an example which works, but it requires manipulation of the main index.html file. I'm using Gatsby, which doesn't really give you access to the .html files, so I would like to detect the adblocker in my component.
The code in their blockadblock.js file is an IIFE, which I don't understand too well, but I understand enough to know that it's invoked when it's created.
If I just copy paste the code from that file and place it inside my component and then try to check for the adBlocker, it looks like blockAdBlock is never undefined
...ANSWER
Answered 2020-Jul-07 at 00:21FuckAdBlock/BlockAdBlock library works by simulating patterns (specifically filtered CSS classes) that AdBlockers are known to block and checking if it gets blocked. (You could do something similar by analyzing adblocker patterns and embedding them in your page).
Using FuckAdBlock project example. Loads script dynamically at runtime from cdnjs by injecting a script tag:
QUESTION
I've been working on the site https://founderspledge.com/ and just noticed that if you go to the main page, and open the Chrome console to view the source, there's an element that I certainly didn't put there:
...ANSWER
Answered 2018-Jan-12 at 14:16UPDATE: Facebook have acknowledged this as a bug: https://developers.facebook.com/bugs/336662116810282/?hc_location=ufi
I'm so glad to find this issue - have been tearing my hair out to work out the same exact thing! I found it's coming from fbevents.js (https://connect.facebook.net/en_US/fbevents.js) version 2.8.7 - you can clearly see the code that adds the div in. It seems like this is something that has happened very recently? But likewise, I couldn't find anything other than references to anti adblocking scripts which had me concerned!
QUESTION
I use this script FuckAdBlock to detect ad block to my website. In summary when a page loads it checks if ad block is enabled. If it is, a function is triggered in which you can notify user etc.
It works fine but there is an issue. It runs only when I hard reload the page. On normal reload nothing happens and that's the issue.
...ANSWER
Answered 2017-Aug-31 at 11:49Try running the check function on page load like so:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install FuckAdBlock
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page