Blocking entire sections of a domain

Various discussions related to filter list maintenance

Moderator: njones

Post Reply
walwhit
Posts: 2
Joined: Fri Apr 19, 2019 7:44 pm

Blocking entire sections of a domain

Post by walwhit »

On http://www.nytimes.com home page, I would like to block or hide all elements of the Smarter Living section (I find it distracting).

I'm a novice at writing custom filters. I did read "Writing Adblock Plus filters" and "Adblock Plus filters explained," but I'm not having any luck. I would appreciate help.

All of the elements I'd like to block contain "/smarter-living" in their URL. Examples from today:

Code: Select all

https://www.nytimes.com/section/smarter-living?pagetype=Homepage&action=click&module=Smarter%20Living

https://www.nytimes.com/2019/04/17/smarter-living/using-public-bathrooms.html?fallback=0&recId=1K5wMUaYPprQVygZUsoOBG8Bpr9&locked=0&geoContinent=NA&geoRegion=LA&recAlloc=home-geo&geoCountry=US&blockId=home-living-vi&imp_id=724175214

https://www.nytimes.com/2019/04/18/smarter-living/wirecutter/declutter-speed-up-phone.html?fallback=0&recId=1K5wMUaYPprQVygZUsoOBG8Bpr9&locked=0&geoContinent=NA&geoRegion=LA&recAlloc=home-geo&geoCountry=US&blockId=home-living-vi&imp_id=87179987
I thought I could write a simple filter like

Code: Select all

nytimes.com/*/smarter-living
but that had no effect.

Thanks for any help!
User avatar
mapx
Posts: 21940
Joined: Thu Jan 06, 2011 2:01 pm

Re: Blocking entire sections of a domain

Post by mapx »

test

Code: Select all

nytimes.com##[class][data-block-tracking-id="Smarter Living"]
walwhit
Posts: 2
Joined: Fri Apr 19, 2019 7:44 pm

Re: Blocking entire sections of a domain

Post by walwhit »

That does the trick. Thank you very much! Sorry for my belated reply.
Post Reply