dhowe / AdNauseamV1

*** This is not the current AdNauseam repository: please find the current repo here:
https://github.com/dhowe/AdNauseam
GNU General Public License v3.0
385 stars 33 forks source link

Google Ads detections not working #307

Closed CyrusSUEN closed 9 years ago

CyrusSUEN commented 9 years ago

At the bottom of the spreadsheet is the list of the websites using Google Ads.

On http://www.cnet.com/

<div id="leader-plus-top-554b9f1b20bdf" class="ad-leader-plus-top" data-ad="leader-plus-top">
    <script>
        window.console && console.log && console.log("ADS: queuing leader-plus-top-554b9f1b20bdf for display");
        var cbsiGptDivIds = cbsiGptDivIds || [];
        cbsiGptDivIds.push("leader-plus-top-554b9f1b20bdf");
        if (window.CnetPageVars && CnetPageVars.ads) {
            CnetPageVars.ads.adCount = CnetPageVars.ads.adCount || {};
            CnetPageVars.ads.adCount.leaderTop = 0;

            CnetPageVars.ads.adScheduledCount = CnetPageVars.ads.adScheduledCount || {};
            CnetPageVars.ads.adScheduledCount.leaderTop = 0;
        }
    </script>

On http://www.zdnet.com/

<section class="leader leader-top ad-active">
    <div class="container">
        <div id="leader-plus-top-554ba2196c1c2" class="ad-leader-plus-top" data-ad="leader-plus-top">
            <script>
                window.console && console.log && console.log("ADS: queuing leader-plus-top-554ba2196c1c2 for display");
                var cbsiGptDivIds = cbsiGptDivIds || [];
                cbsiGptDivIds.push("leader-plus-top-554ba2196c1c2");
            </script>
        </div>
    </div>
</section>

Webmaster placed a div for displaying an ad followed by inline script to generate a [ div > iframe ]

dhowe commented 9 years ago

So what is the structure here after rendering? A single iframe inside a div? Do we have a elemhide rule for this?

CyrusSUEN commented 9 years ago

So what is the structure here after rendering? A single iframe inside a div? Do we have a elemhide rule for this?

Yes. It's JS-generated iframe (and script blocked) that after I added the domain to parser.js I could see the structure from developer console.

dhowe commented 9 years ago

Can you write an elem-hide rule for it?

CyrusSUEN commented 9 years ago

Yes, I'm trying.

BTW do you encounter error msgs in terminal on www.cnet.com?

console.error: adnauseam:
Object
  - prototype Object
console.error: adnauseam:
Object
    - _errorType = Error
    - message = Permission denied to access property "document"
dhowe commented 9 years ago

This error should be fixed in the current version of elemhide

CyrusSUEN commented 9 years ago

Now that ads from http://www.zdnet.com/ and http://www.cnet.com/ can be detected. Closed.