Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I use a wildcard in uBlock Origin?

How can I use a wildcard in uBlock Origin? I've tried to figure out how to do it, but I'm a little bit confused. I just want to simplify all of these rules into one rule:

www.dailymail.co.uk###js-article-text > div:nth-of-type(2) > div:nth-of-type(2)
www.dailymail.co.uk###js-article-text > div:nth-of-type(2) > div:nth-of-type(3)
www.dailymail.co.uk###js-article-text > div:nth-of-type(2) > div:nth-of-type(4)
www.dailymail.co.uk###js-article-text > div:nth-of-type(2) > div:nth-of-type(5)
www.dailymail.co.uk###js-article-text > div:nth-of-type(2) > div:nth-of-type(6)
www.dailymail.co.uk###js-article-text > div:nth-of-type(2) > div:nth-of-type(7)
www.dailymail.co.uk###js-article-text > div:nth-of-type(2) > div:nth-of-type(9)
www.dailymail.co.uk###js-article-text > div:nth-of-type(2) > div:nth-of-type(10)

Is it possible to give a range of numbers, or a list of specific numbers, or simply an asterisk? Thanks!

like image 514
grgoelyk Avatar asked Jun 21 '17 00:06

grgoelyk


People also ask

Can uBlock Origin block ads?

uBlock Origin (/ˈjuːblɒk/; "YOU-block") is a free and open-source browser extension for content filtering, including ad blocking. The extension is available for Chrome, Chromium, Edge, Firefox, Opera, Pale Moon, as well as versions of Safari prior to 13.


1 Answers

This will delete from all sites:

###js-article-text > div:nth-of-type.*

This will delete from only this site

www.dailymail.co.uk###js-article-text > div:nth-of-type

NOTE: in both cases delete the first line starting with !

That line will only do instants, meaning next time you log in it will ignore your rule on any page of that site except that page Deleting line will make rule apply for entire site.

like image 110
Clint Avatar answered Sep 27 '22 20:09

Clint