# \[Support\] uMatrix

**URL:** <https://discourse.mozilla.org/t/support-umatrix/5131>\
**Category:** Add-on Support\
**Created:** [November 6, 2015, 2:21am UTC](https://discourse.mozilla.org/t/support-umatrix/5131 "2015-11-06T02:21:34Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![gorhill](https://avatars.discourse-cdn.com/v4/letter/g/c5a1d2/32.png) [@gorhill](https://discourse.mozilla.org/u/gorhill)\
**Post date:** [November 6, 2015, 2:21am UTC](https://discourse.mozilla.org/t/support-umatrix/5131/1 "2015-11-06T02:21:34Z")

</div>

This is the new support and feedback thread for [uMatrix](https://addons.mozilla.org/en-us/firefox/addon/umatrix/).

> [uMatrix – Get this Extension for 🦊 Firefox (en-US)](https://addons.mozilla.org/en-us/firefox/addon/umatrix/)

---

<div class="post-metadata">

**Author:** ![genos](https://avatars.discourse-cdn.com/v4/letter/g/2acd7d/32.png) [@genos](https://discourse.mozilla.org/u/genos)\
**Post date:** [December 16, 2015, 12:51am UTC](https://discourse.mozilla.org/t/support-umatrix/5131/2 "2015-12-16T00:51:55Z")

</div>

It is possible to not block youtube scripts globaly? Because when I come across a YouTube video on a random website, it resets my country and autoplay on [youtube.com](http://youtube.com).

---

<div class="post-metadata">

**Author:** ![Wozzie87](https://avatars.discourse-cdn.com/v4/letter/w/dfb087/32.png) [@Wozzie87](https://discourse.mozilla.org/u/Wozzie87)\
**Post date:** [January 26, 2016, 7:30pm UTC](https://discourse.mozilla.org/t/support-umatrix/5131/3 "2016-01-26T19:30:28Z")

</div>

Is there a way to have umatrix always allow specific urls such as all instances of “[ytimg.com](http://ytimg.com)”? Every time a website wants to load a youtube video whether it be [Example 1](http://www.androidpolice.com/2015/12/18/android-polices-picks-for-the-20-best-android-apps-of-2015/) or [Example 2](http://gizmodo.com/11-of-the-weirdest-videos-on-youtube-1580781007) I have to open umatrix, enable the scripts and frames from [youtube.com](http://youtube.com) and [ytimg.com](http://ytimg.com) every time. Is there a way to always have websites of my choosing to always be enables, such as always allowing every instance of youtube,com no matter which website I am on?

---

<div class="post-metadata">

**Author:** ![Wozzie87](https://avatars.discourse-cdn.com/v4/letter/w/dfb087/32.png) [@Wozzie87](https://discourse.mozilla.org/u/Wozzie87)\
**Post date:** [January 26, 2016, 7:31pm UTC](https://discourse.mozilla.org/t/support-umatrix/5131/4 "2016-01-26T19:31:28Z")

</div>

Is there a way to have uMatrix enable all instances of [youtube.com](http://youtube.com) no matter which website uses it? I am trying to avoid having to reenable [youtube.com](http://youtube.com) every time a website wants to load an embeded youtube video.

---

<div class="post-metadata">

**Author:** ![majken](https://sea1.discourse-cdn.com/flex001/user_avatar/discourse.mozilla.org/majken/32/21188_2.png) [@majken](https://discourse.mozilla.org/u/majken)\
**Post date:** [January 26, 2016, 7:32pm UTC](https://discourse.mozilla.org/t/support-umatrix/5131/5 "2016-01-26T19:32:24Z")

</div>

@gorhill - I just merged in two wayward posts. Replying to make sure you get a notification.

---

<div class="post-metadata">

**Author:** ![gorhill](https://avatars.discourse-cdn.com/v4/letter/g/c5a1d2/32.png) [@gorhill](https://discourse.mozilla.org/u/gorhill)\
**Post date:** [January 26, 2016, 7:57pm UTC](https://discourse.mozilla.org/t/support-umatrix/5131/6 "2016-01-26T19:57:18Z")

</div>

> Is there a way to have uMatrix enable all instances of [youtube.com](http://youtube.com) no matter which website uses it?

Sure.

The trick is to create rules in the _global scope_, so that these rules apply everywhere.

You can select the current scope for which rules will be applied with the top-left cell: click on it, a drop list will appear from which the scope can be selected.

 ![](https://us1.discourse-cdn.com/flex001/uploads/mozilla/original/2X/9/94241ca1d844a4100ab51f88836b4f63bf0e5f17.png)

For example, I went to your first example site, selected the global scope (identified with “\*”), then created the rules to make the embedded Youtube video work:

 ![](https://us1.discourse-cdn.com/flex001/uploads/mozilla/original/2X/b/b5b42311f7a3b465f429d1b979fdd65ccc8d7bfc.png)

What is left to do is save the rules (using the padlock), and a good habit is to select back the local scope to be sure you do not end up mistakenly creating rules in the global scope.

The rules can also be added manually (this is the rules created using the UI above) in the _My rules_ pane in the dashboard:

```
* youtube.com * allow
* youtube.com frame allow
* ytimg.com * allow
* googlevideo.com * allow

```

Then click _Commit_ to make them permanent. The first item in a rule is the origin, i.e. where the rule should apply. `*` = everywhere, aka global scope.

( **Edit:** added missing rule for `googlevideo.com`: you will need to select it in the UI or add it manually – embedded Youtube videos won’t work without it.)

---

<div class="post-metadata">

**Author:** ![Droyk](https://avatars.discourse-cdn.com/v4/letter/d/f0a364/32.png) [@Droyk](https://discourse.mozilla.org/u/Droyk)\
**Post date:** [February 18, 2016, 9:29am UTC](https://discourse.mozilla.org/t/support-umatrix/5131/7 "2016-02-18T09:29:29Z")

</div>

You are about to read some bad English. and I am really sorry about it. I am not a native English speaker.

Hey @gorhill First of all I want to thank you for making two good extensions 1st is ublock & 2nd is umatrix  
and now I want you to give me some helpful answers

So @gorhill 1st question is I am already an advanced user of ublock… but now I want to be an experienced user in umatrix why you guys didn’t made a wiki like you guys did in ublock case?

2nd I don’t want to use any other ad blockers can I do that if I am using umatrix and remove every ad blocker will I see any ads at all?

3rd If I really have 2 have another ad blocker for ad blocking for e.g. ublock+umatrix how much memories these 2 extensions are going to capture and after using umatrix for 1 day straight I have to say that my page’s load slow sometimes I don’t know why though …they shouldn’t be right :(…and plz tell me how much cpu power they will take too?

4th why you guys didn’t add element picker in umatrix …like you did in ublock

5th after using umatrix for the whole day …I have to say that it breaks the pages a lot …so if a user need’s to fix that user have to turn the script button green this thing fixes almost 70% of pages and now for the remaining 30% of the pages that breaks after enabling the script option I have to enable XHR,OTHER , and sometimes iframe too…by doing this I have to say that it’s a tedious task I browse 100 to 200 websites a day…and by enabling and testing these options almost takes some seconds too some minutes now multiply whole testing thing by number of websites I visit everyday  
so the answer would be it takes away too much time. even if I use the lock option to save my setting’s there is no guarantee that I am going to see the site again … Every day I browse 50 to 60 new sites for some of college project’s…So in conclusion is there is any way to make script, XHR and other a default enables on every website Plz tell me there is a way to do that

6th So I wanted to replace my ublock to umatrix but there aren’t many host’s in the umatrix so what I did is add custom url’s from ublock to umatrix  
The below written hosts I added into the umatrix… plz tell me I did the correct thing and if there are any missing host that I didn’t add plz tell me

```auto
https://raw.github.com/reek/anti-adblock-killer/master/anti-adblock-killer-filters.txt
https://easylist-downloads.adblockplus.org/easyprivacy.txt
https://easylist-downloads.adblockplus.org/easylist_noelemhide.txt
https://easylist-downloads.adblockplus.org/easylist.txt
https://raw.githubusercontent.com/reek/anti-adblock-killer/master/anti-adblock-killer-filters.txt
https://raw.githubusercontent.com/gorhill/uBlock/master/assets/ublock/badware.txt
https://raw.githubusercontent.com/gorhill/uBlock/master/assets/ublock/filters.txt
https://raw.githubusercontent.com/gorhill/uBlock/master/assets/ublock/privacy.txt
https://raw.githubusercontent.com/gorhill/uBlock/master/assets/ublock/unbreak.txt

```

---

<div class="post-metadata">

**Author:** ![caoilte](https://sea1.discourse-cdn.com/flex001/user_avatar/discourse.mozilla.org/caoilte/32/21630_2.png) [@caoilte](https://discourse.mozilla.org/u/caoilte)\
**Post date:** [March 16, 2016, 4:53pm UTC](https://discourse.mozilla.org/t/support-umatrix/5131/10 "2016-03-16T16:53:51Z")

</div>

Hi @gorhill,  
Love the extension. Was just wondering why it seems like I get \*.cloudfront.net as a whitelist to work. It’s a particular problem on [aws.amazon.com](http://aws.amazon.com) where you could end up with a different cloudfront every time you log in. I have to separately add every sub-domain. Is it because cloudfront is HTTPS or does it get special treatment because it’s a CDN?

---

<div class="post-metadata">

**Author:** ![gorhill](https://avatars.discourse-cdn.com/v4/letter/g/c5a1d2/32.png) [@gorhill](https://discourse.mozilla.org/u/gorhill)\
**Post date:** [March 16, 2016, 5:09pm UTC](https://discourse.mozilla.org/t/support-umatrix/5131/11 "2016-03-16T17:09:29Z")

</div>

> [@caoilte](#):
>
> It’s a particular problem on [aws.amazon.com](http://aws.amazon.com) where you could end up with a different cloudfront every time you log in.

`cloudfront.net` is a public suffix as per the official [Public Suffix List](https://publicsuffix.org/) – meaning it can not be treated as a base domain.

uMatrix will not list anything below a base domain in its popup panel – because it does not want users to unduly whitelist a broad section of the web.

However, if you want to whitelist something above base domain, you can enter the rule manually in the _My rules_ pane. Using `cloudfront.net` as an example:

```
* cloudfront.net * allow

```

This will allow network requests of any type to `cloudfront.net` from anywhere.

Note that people often think `cloudfront.net` domains are random: they are not, they are just random-looking.

Related GitHub issue: [https://github.com/gorhill/uMatrix/issues/54](https://github.com/gorhill/uMatrix/issues/54).

---

<div class="post-metadata">

**Author:** ![dag](https://sea1.discourse-cdn.com/flex001/user_avatar/discourse.mozilla.org/dag/32/21634_2.png) [@dag](https://discourse.mozilla.org/u/dag)\
**Post date:** [March 20, 2016, 12:40pm UTC](https://discourse.mozilla.org/t/support-umatrix/5131/12 "2016-03-20T12:40:43Z")

</div>

Hi, can I allow first-party requests to the current domain but block requests to subdomains? For example, I visit `example.com` and I can see the image `example.com/photo.jpg` but the script `metrics.example.com/tracker.js` is blocked? I want this as a global rule, not just for `example.com`, but I can’t figure out how to express that in terms of rules, if it is in deed possible. Cheers.

---

<div class="post-metadata">

**Author:** ![gorhill](https://avatars.discourse-cdn.com/v4/letter/g/c5a1d2/32.png) [@gorhill](https://discourse.mozilla.org/u/gorhill)\
**Post date:** [March 20, 2016, 1:08pm UTC](https://discourse.mozilla.org/t/support-umatrix/5131/13 "2016-03-20T13:08:25Z")

</div>

> [@dag](#):
>
> can I allow first-party requests to the current domain but block requests to subdomains?

Not without creating specific rules for subdomains.

---

<div class="post-metadata">

**Author:** ![alison](https://avatars.discourse-cdn.com/v4/letter/a/e0b2c6/32.png) [@alison](https://discourse.mozilla.org/u/alison)\
**Post date:** [May 19, 2016, 2:29pm UTC](https://discourse.mozilla.org/t/support-umatrix/5131/14 "2016-05-19T14:29:49Z")

</div>

Dear Gorhill! I’m in the process of learning uMatrix and I find it an extremely useful tool. Thank you for your contributions.  
I wondered, can uMatrix totally replace the functionality of NoScript? If yes, what exact settings should I use? It would be a pleasure to switch fully to uMatrix.

All the best – A.

---

<div class="post-metadata">

**Author:** ![olaf](https://sea1.discourse-cdn.com/flex001/user_avatar/discourse.mozilla.org/olaf/32/4744_2.png) [@olaf](https://discourse.mozilla.org/u/olaf)\
**Post date:** [June 11, 2016, 11:36am UTC](https://discourse.mozilla.org/t/support-umatrix/5131/15 "2016-06-11T11:36:08Z")

</div>

In the dashboard there’s a tab “My rules” with a section “Permanent rules”

> \* \* \* block
> 
> - 
> - css allow
> 
> - 
> - frame block
> 
> - 
> - image allow

I am curious about `* * frame block`. Isn’t this already covered by `* * * block`?

---

<div class="post-metadata">

**Author:** ![gorhill](https://avatars.discourse-cdn.com/v4/letter/g/c5a1d2/32.png) [@gorhill](https://discourse.mozilla.org/u/gorhill)\
**Post date:** [June 21, 2016, 12:59pm UTC](https://discourse.mozilla.org/t/support-umatrix/5131/16 "2016-06-21T12:59:34Z")

</div>

> [@olaf](#):
>
> I am curious about \* \* frame block. Isn’t this already covered by \* \* \* block?

The idea is that one may want to allow the “all” cell – to quickly unbreak a site), but still keep blocking frames.

---

<div class="post-metadata">

**Author:** ![rvb](https://avatars.discourse-cdn.com/v4/letter/r/7ea924/32.png) [@rvb](https://discourse.mozilla.org/u/rvb)\
**Post date:** [June 23, 2016, 6:18am UTC](https://discourse.mozilla.org/t/support-umatrix/5131/17 "2016-06-23T06:18:03Z")

</div>

I have not had any success finding an explanation of the red & green triangles that appear in the top left corner of some of the rows. Could you please explain them? Thanks.  
Otherwise: this is a very useful extension for Chrome! Thank you for writing it.

---

<div class="post-metadata">

**Author:** ![gorhill](https://avatars.discourse-cdn.com/v4/letter/g/c5a1d2/32.png) [@gorhill](https://discourse.mozilla.org/u/gorhill)\
**Post date:** [June 23, 2016, 1:56pm UTC](https://discourse.mozilla.org/t/support-umatrix/5131/18 "2016-06-23T13:56:06Z")

</div>

> [@rvb](#):
>
> I have not had any success finding an explanation of the red & green triangles that appear in the top left corner of some of the rows.

[The matrix cells](https://github.com/gorhill/httpswitchboard/wiki/The-matrix-cells).

---

<div class="post-metadata">

**Author:** ![jsm](https://avatars.discourse-cdn.com/v4/letter/j/bb73d2/32.png) [@jsm](https://discourse.mozilla.org/u/jsm)\
**Post date:** [July 4, 2016, 4:10pm UTC](https://discourse.mozilla.org/t/support-umatrix/5131/19 "2016-07-04T16:10:20Z")

</div>

Hi @gorhill  
Thank you for a superb addon!  
I like it so much I was wondering if it could be added to the new Safari extensions?  
All the regular blockers and more are available, but I’d much rather use µMatrix!  
Thanks!

---

<div class="post-metadata">

**Author:** ![anewuser](https://avatars.discourse-cdn.com/v4/letter/a/eb8c5e/32.png) [@anewuser](https://discourse.mozilla.org/u/anewuser)\
**Post date:** [July 9, 2016, 6:29pm UTC](https://discourse.mozilla.org/t/support-umatrix/5131/22 "2016-07-09T18:29:18Z")

</div>

Is there a way to collapse subdomains automatically, like on uBlock Origin?

---

<div class="post-metadata">

**Author:** ![gorhill](https://avatars.discourse-cdn.com/v4/letter/g/c5a1d2/32.png) [@gorhill](https://discourse.mozilla.org/u/gorhill)\
**Post date:** [July 25, 2016, 5:28pm UTC](https://discourse.mozilla.org/t/support-umatrix/5131/25 "2016-07-25T17:28:39Z")

</div>

> [@anewuser](#):
>
> Is there a way to collapse subdomains automatically, like on uBlock Origin?

There is a collapse button in the _all_ cell, it will expand/collapse the subdomains for all the domains.

---

<div class="post-metadata">

**Author:** ![Jan2](https://sea1.discourse-cdn.com/flex001/user_avatar/discourse.mozilla.org/jan2/32/5494_2.png) [@Jan2](https://discourse.mozilla.org/u/Jan2)\
**Post date:** [July 25, 2016, 5:45pm UTC](https://discourse.mozilla.org/t/support-umatrix/5131/26 "2016-07-25T17:45:48Z")

</div>

Does regex work with rules ?

[Next page](https://discourse.mozilla.org/t/support-umatrix/5131.md?page=2)
