Need help writing an element blocking filter...again

Everything about using Adblock Plus on Mozilla Firefox, Thunderbird and SeaMonkey
Post Reply
anon42
Posts: 14
Joined: Fri Jul 24, 2015 10:21 pm

Need help writing an element blocking filter...again

Post by anon42 »

A few years ago I asked for help suppressing a horizontally scrolling ad banner on this page. Well they changed their html and the banner is back again. As always it's varies from week to week offering different ads. Here's what I think is the pertinent code:

Code: Select all

    <div class="row main-col-row">
        <div class="main-col col-md-9">

                 <div id="carousel" class="carousel slide" data-ride="carousel">

                <div class="carousel-inner" role="listbox">

            
                                            <div class="item active">
                    <a href="https://www.macupdate.com/app/mac/48819/coherence?utm_source=promo&utm_medium=website&utm_content=billboard&utm_campaign=coherence" onclick="try{ga('send','event','macupdate','click','browsehomepage_billboard-click','48819');}catch(e){}">
                        <img src="//dl2.macupdate.com/images/app_billboards/Coherence.jpg"
                            alt="Coherence" 
                            srcset="//dl2.macupdate.com/images/app_billboards/Coherence.jpg 1x">
                    </a>
                </div>
                                            <div class="item ">
                    <a href="https://www.macupdate.com/bundle/macupdate-desktop-command-tab-plus?utm_source=bundles&utm_medium=website&utm_content=billboard&utm_campaign=mudbogo_command-tab" onclick="try{ga('send','event','macupdate','click','browsehomepage_billboard-click','57759');}catch(e){}">
                        <img src="//dl2.macupdate.com/images/app_billboards/billboard.jpg"
                            alt="Command-Tab Plus" 
                            srcset="//dl2.macupdate.com/images/app_billboards/billboard.jpg 1x">
                    </a>
                </div>
                                            <div class="item ">
                    <a href="https://www.macupdate.com/app/mac/41549/quick-n-easy-web-builder?utm_source=promo&utm_medium=website&utm_content=billboard&utm_campaign=quick-n-easy-web-builder" onclick="try{ga('send','event','macupdate','click','browsehomepage_billboard-click','41549');}catch(e){}">
                        <img src="//dl2.macupdate.com/images/app_billboards/quick%20n%20easy.jpg"
                            alt="Quick 'n Easy Web Builder" 
                            srcset="//dl2.macupdate.com/images/app_billboards/quick%20n%20easy.jpg 1x">
                    </a>
                </div>
                                            <div class="item ">
                    <a href="/app/mac/5240/corel-painter" onclick="try{ga('send','event','macupdate','click','browsehomepage_billboard-click','5240');}catch(e){}">
                        <img src="//dl2.macupdate.com/images/app_billboards/corelPainter_billboard.jpg"
                            alt="Corel Painter" 
                            srcset="//dl2.macupdate.com/images/app_billboards/corelPainter_billboard.jpg 1x">
                    </a>
                </div>
            
                                                                    <ol class="carousel-indicators" schema="">
                        <li data-target="#carousel" data-slide-to="0" class="active"></li>
                                                                                    <li data-target="#carousel" data-slide-to="1"></li>
                                                                                    <li data-target="#carousel" data-slide-to="2"></li>
                                                                                    <li data-target="#carousel" data-slide-to="3"></li>
                                                    </div>

    </div>
[/size]
Since the ads vary from week to week is there a general filter that can take out the entire sliding banner? In the above the banner specifies three products. The old general matching technique is no longer valid.

I would have updated my old thread but it appears to be locked.

Thanks (again) in advance.
anon42
Posts: 14
Joined: Fri Jul 24, 2015 10:21 pm

Post by anon42 »

I may have answered my own question by extrapolating what was suggested for the earlier html. But just to confirm it appears that the filter,

macupdate.com##[id^="carousel"]

seems to work (at the moment at least). What do you think?

-------
Why am I having trouble posting this and the previous post? I keep getting "too few characters". Why? Eventually, if I keep submitting, it works.
Post Reply