Re:Show HN: Firefox addon that hides news articles about Cov...
by lostinroutine on Saturday April 04, 2020 @06:13PM
(#22781975)
With ignoring case:
a:has-text(/corona/i)
a:has-text(/covid/i)
a:has-text(/epidemic/i)
a:has-text(/pandemic/i)
a:has-text(/virus/i)
a:has-text(/death/i)
a:has-text(/ICU/i)
a:has-text(/social distancing/i)
One-liner:
a:has-text(/corona|covid|epidemic|pandemic|virus|death|social distancing|ICU/i)
Source: https://github.com/gorhill/uBlock/wiki/Procedural-cosmetic-f...
Re:Show HN: Firefox addon that hides news articles about Cov...
by iKenshu on Saturday April 04, 2020 @06:07PM
(#22781941)
I suppose that this only works with a-href right?
Re:Show HN: Firefox addon that hides news articles about Cov...
by sovok_x on Sunday April 05, 2020 @11:21AM
(#22786076)
The filter is applied to entire content of a given tag and its subtags, here is the example for HN (has-text must be site-specific):
news.ycombinator.com##.itemlist .athing:not(.comtr):has-text(/corona|covid|\bsars\b|(?:epi|pan)demi|virus|death|social distanc|\bICU\b|wuhan|quarantin/i)+*
news.ycombinator.com##.itemlist .athing:not(.comtr):has-text(/corona|covid|\bsars\b|(?:epi|pan)demi|virus|death|social distanc|\bICU\b|wuhan|quarantin/i)
Re:Show HN: Firefox addon that hides news articles about Cov...
by ovx99 on Saturday April 04, 2020 @06:01PM
(#22781905)
Will this remove just the word, or the entire paragraph, or what?
Re:Show HN: Firefox addon that hides news articles about Cov...
by lostinroutine on Saturday April 04, 2020 @06:16PM
(#22781992)
Just any a-tag containing the listed phrases.
a:has-text(Corona)
a:has-text(Covid)
a:has-text(Epidemic)
a:has-text(Pandemic)
a:has-text(Virus)
a:has-text(Death)
a:has-text(ICU)
a:has-text(Social Distancing)
a:has-text(corona)
a:has-text(covid)
a:has-text(epidemic)
a:has-text(pandemic)
a:has-text(virus)
a:has-text(death)
a:has-text(social distancing)