Skip to content

Appears to always return 'AdBlock is Enabled' #1

@ghost

Description

Testing on Edge with no plugins:
AdBlock is enabled

Testing on Chrome with no adblock:
AdBlock is enabled

Testing on Firefox:
AdBlock is enabled

EDIT:
NoScript was installed(firefox+chrome), but the analytics site was set to temporarily trusted.

This was console output:

[ABD] start beginTest
[ABD] adding bait node to DOM 
[ABD] exiting test loop - value: false

Output WithGA:

[ABD] adding bait node to DOM
[ABD] found adblock zero attr: offsetHeight
[ABD] found adblock zero attr: offsetWidth
[ABD] found adblock zero attr: offsetHeight
[ABD] found adblock zero attr: clientHeight
[ABD] found adblock zero attr: clientWidth
[ABD] found adblock zero attr: offsetHeight
[ABD] found adblock zero attr: offsetWidth
[ABD] found adblock zero attr: offsetHeight
[ABD] found adblock zero attr: clientHeight
[ABD] found adblock zero attr: clientWidth
[ABD] found adblock zero attr: offsetHeight
[ABD] found adblock zero attr: offsetWidth
[ABD] found adblock zero attr: offsetHeight
[ABD] found adblock zero attr: clientHeight
[ABD] found adblock zero attr: clientWidth
[ABD] found adblock zero attr: offsetHeight
[ABD] found adblock zero attr: offsetWidth
[ABD] found adblock zero attr: offsetHeight
[ABD] found adblock zero attr: clientHeight
[ABD] found adblock zero attr: clientWidth
[ABD] found adblock zero attr: offsetHeight
[ABD] found adblock zero attr: offsetWidth
[ABD] found adblock zero attr: offsetHeight
[ABD] found adblock zero attr: clientHeight
[ABD] found adblock zero attr: clientWidth
[ABD] exiting test loop - value: false

2nd Edit:
Are these switched around?
Not detected makes enabled visible,
Detected makes disabled visible?

function adBlockDetected() {
    enabledEl.style.display = 'none';
    disabledEl.style.display = 'block';
}

function adBlockNotDetected() {
    disabledEl.style.display = 'none';
    enabledEl.style.display = 'block';
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions