how to block "div id" with random numbers

Everything about using Adblock Plus on Mozilla Firefox, Thunderbird and SeaMonkey
Post Reply
itge13
Posts: 8
Joined: Thu Mar 22, 2018 4:35 pm

how to block "div id" with random numbers

Post by itge13 »

on Quora I try to block div ID's with codes like:

Code: Select all

<div id="__w2_MCKlgLO_content_wrapper">
why does

Code: Select all

###div(id*=content_wrapper)
not work?

Image
User avatar
mapx
Posts: 21940
Joined: Thu Jan 06, 2011 2:01 pm

Re: how to block "div id" with random numbers

Post by mapx »

quora.com##[id*=content_wrapper]

but try

Code: Select all

quora.com#?#.content_container:-abp-has(.featured_text_wrapper)
itge13
Posts: 8
Joined: Thu Mar 22, 2018 4:35 pm

Re: how to block "div id" with random numbers

Post by itge13 »

mapx wrote:

Code: Select all

quora.com##[id*=content_wrapper]

Code: Select all

quora.com#?#.content_container:-abp-has(.featured_text_wrapper)
thank you for your extremly fast answer and support. Both variants work! Why is the second variant the one you recommend?

It is recommended to not nest :-abp-has() where possible, as that will further slow down element hiding. Also it is recommended that the selector inside a :-abp-has() starts with a combinator like >, + or ~. Otherwise a lot of elements will be needlessly selected as more that one ancestor will match.
from: development-builds/new-syntax-for-advan ... ding-rules
User avatar
mapx
Posts: 21940
Joined: Thu Jan 06, 2011 2:01 pm

Re: how to block "div id" with random numbers

Post by mapx »

The first one could hide legitimate content, the second will hide only the ads
maynak00
Posts: 29
Joined: Sat Jun 22, 2013 7:55 pm

Re: how to block "div id" with random numbers

Post by maynak00 »

Hi @mapx, thank you for filters. Do you have a new filters for quora.com ?
itge13
Posts: 8
Joined: Thu Mar 22, 2018 4:35 pm

Re: how to block "div id" with random numbers

Post by itge13 »

maynak00 wrote:Hi @mapx, thank you for filters. Do you have a new filters for quora.com ?
quora.com##.feed_story
maynak00
Posts: 29
Joined: Sat Jun 22, 2013 7:55 pm

Re: how to block "div id" with random numbers

Post by maynak00 »

itge13 wrote:
maynak00 wrote:Hi @mapx, thank you for filters. Do you have a new filters for quora.com ?
quora.com##.feed_story
thanks, but not working
itge13
Posts: 8
Joined: Thu Mar 22, 2018 4:35 pm

Re: how to block "div id" with random numbers

Post by itge13 »

maynak00 wrote:
itge13 wrote:
maynak00 wrote:Hi @mapx, thank you for filters. Do you have a new filters for quora.com ?
quora.com##.feed_story
thanks, but not working
it works for me, you sure you copied it one to one in your filter? If yes open a new topic with what exactely you see and shouldnt.
jhkWEGFUY
Posts: 1
Joined: Mon Apr 08, 2019 11:54 pm

Re: how to block "div id" with random numbers

Post by jhkWEGFUY »

quora.com##.AnswerFeedStory:has(span div>div>div>div>a>p>span)quora.com
quora.com##.feed_expand
Post Reply