Blocking entire sections of a domain

Various discussions related to filter list maintenance

Moderator: njones

Blocking entire sections of a domain

Postby walwhit » Fri Apr 19, 2019 7:58 pm

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!
walwhit
 
Posts: 2
Joined: Fri Apr 19, 2019 7:44 pm

Re: Blocking entire sections of a domain

Postby mapx » Fri Apr 19, 2019 9:30 pm

test
Code: Select all
nytimes.com##[class][data-block-tracking-id="Smarter Living"]
User avatar
mapx
 
Posts: 21947
Joined: Thu Jan 06, 2011 3:01 pm

Re: Blocking entire sections of a domain

Postby walwhit » Tue May 14, 2019 10:54 pm

That does the trick. Thank you very much! Sorry for my belated reply.
walwhit
 
Posts: 2
Joined: Fri Apr 19, 2019 7:44 pm


Return to Filter List Authors' Corner

Who is online

Users browsing this forum: No registered users and 1 guest