Hello,
Could someone tell me how to create a regular expression filter that applies only to a given domain?
I mean, if I understand well, if I want to apply the rule ##.sponsor only to the domain example.com, it seems that I just have to write example.com##.sponsor.
But following this syntax, if I want to apply the rule /my.regexp/ to the same domain, I'd logically write example.com/my.regexp/, but in this case, the /my.regexp/ part will be seen as a query inside the domain, right?
Which separator should I use, then?
Regular expression on specific domain
Moderator: njones
Re: Regular expression on specific domain
You should use
see an example from easylist:
Code: Select all
/my.regexp/$domain=example.com
Code: Select all
/http://[a-zA-Z0-9]+\.[a-z]+\/.*(?:[!"#$%&'()*+,:;<=>?@/\^_`{|}~-]).*[a-zA-Z0-9]+/$script,third-party,domain=keezmovies.com|redtube.com|tube8.com|tube8.es|tube8.fr|www.pornhub.com|youporn.com
Re: Regular expression on specific domain
Ok, thank you very much.
It works (on Firefox).
By the way, do you know how to apply the same rule to the Firefox for Android addon?
It works (on Firefox).
By the way, do you know how to apply the same rule to the Firefox for Android addon?
Re: Regular expression on specific domain
for android just install uBo (ublock origin). ABP still did not implemented the custom filters in FF on android