Hacker News new | ask | show | jobs
by rattray 2172 days ago
How can I get these two features on Firefox:

1. Block scripts on certain domains

2. Block ads & tracking (including on Android)

Those are my favorite Brave features. How do I get them on Firefox?

5 comments

On mobile: https://play.google.com/store/apps/details?id=org.mozilla.fe... + enable the extention "uBlock Origin" in the settings (not sure the exact steps while writing this, sorry)

On desktop: regular Firefox + https://addons.mozilla.org/en-US/firefox/addon/ublock-origin...

In uBlock Origin, there is a setting that disables Javascript by default (which I use). You can then enable it temporarily or permanently on a per-site basis.

Thank you! Was very easy. Liking this so far.
I'm using Adguard's DNS on my router. 5 of us at home due to Covid-19 and no complaints from anybody about things not working.

NextDNS has a more advanced version (you can add and remove domains) for $19.90/year

It's not quite as good as having a PiHole or similar setup because some devices have their DNS settings hard coded. You have to route those addresses to override your Chromecast, etc.

https://adguard.com/en/adguard-dns/overview.html https://nextdns.io/

I use uMatrix to block scripts on certain domains. I used to use NoScript for this, but switched to uMatrix when I found that it gave me much more fine-grained control over what to allow or block.

For ad-blocking, I supplement uMatrix with uBlock Origin. It has its own block lists that it perodically

On top of that, I use privoxy as an http proxy. Unfortunately, it can't filter https.

Yet another part of my defense is DNS blocklists that I put in to /etc/hosts.[1]

Using this combination, I virtually never see any ads.

[1] - https://github.com/StevenBlack/hosts

> I use uMatrix to block scripts on certain domains. [...] For ad-blocking, I supplement uMatrix with uBlock Origin.

As the author of both uBO and uMatrix, I don't understand the need to use uMatrix to block scripts when already using uBO, since uBO can do the same.

Even better, uBO supports replacing certain blocked scripts with a local, neutered version (to lower likelihood of site breakage), something which becomes broken if you block the same script with another extension (i.e. in either NoScript or uMatrix).

uMatrix gives me the ability to select on a domain and subdomain level where to block or allow script and other page elements using its matrix interface.

If this is possible to do in uBlock Origin, I don't know how.

AFAIK, uBO does not have a similar matrix-like interface. So if the equivalent control is possible somehow, it must be hidden further down in its interface, which makes it much less convenient for me than the simple matrix that's behind a single mouse click for me in uMatrix.

I'd love to learn how uBO can be used like uMatrix, if that's possible. There's no need for both extensions if uBO can do it all, but as far as I know it can't.

Off-topic, but seeing as we've got gorhill here:

Any plans to update uMatrix so it behaves nicer on mobile? The popup interface resists pinch-to-zoom and the text is so small as to be literally illegible on mobile devices. So I can't read the various domains to decide which ones I want to block or permit!

[uBlock Origin was recently updated to make it more mobile friendly. Although, ironically, out of the two, it was already more usable on mobile as it was possible to zoom and pan round the interface.]

Answering my own question, Firefox Android allows Add-Ons. So installing uBlock Origin for ad blocking and NoScript Security Suite for script blocking was trivial. So far so good, curious to see how it plays out...
And it turns out uBlock does allow you to block scripts on specific domains, so I don't even need NoScript. Nice.
Install "uBlock Origin" add-on, with "I am advanced user" enabled. And/or "uMatrix" for more fine-grained control.