Page 1 of 1

Blocking entire sections of a domain

Posted: Fri Apr 19, 2019 7:58 pm
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!

Re: Blocking entire sections of a domain

Posted: Fri Apr 19, 2019 9:30 pm
by mapx
test

Code: Select all

nytimes.com##[class][data-block-tracking-id="Smarter Living"]

Re: Blocking entire sections of a domain

Posted: Tue May 14, 2019 10:54 pm
by walwhit
That does the trick. Thank you very much! Sorry for my belated reply.