How to install uMatrix in Pale Moon 27 in GNU/Linux (Ubuntu)

Post your tutorials for using Pale Moon or performing related tasks here.
Note: Not for "how do I...?" Questions!

Moderator: satrow

Forum rules
Tutorials and Howtos should only relate to Pale Moon, and not to third party applications. e.g.: Don't post a Howto for configuring your firewall.
If you have a question how to do something, you should use one of the support boards, not this board. It is meant for people to document and post instructions.
User avatar
nicolaasjan
Hobby Astronomer
Hobby Astronomer
Posts: 18
Joined: Fri, 28 Jul 2017, 14:44
Location: The Netherlands

Re: How to install uMatrix in Pale Moon 27 in GNU/Linux (Ubuntu)

Unread postby nicolaasjan » Fri, 15 Feb 2019, 16:21

r4and0mUs3r wrote:For anyone interested .. decided to have a go at building this according to MoonSavvy's post ..

... building uMatrix v1.3.2 : v1.3.4 : v1.3.6 with the patch, they each appear to work correctly according to checking them at the BrowserLeaks page .. with the exception of the Icon/button not being available/visible in the latter two.

Found this .. the "Update Badge" section in the v1.3.2 "tabs.js" file is the only significant difference in that file between the three versions. Copying just that section of code from v1.3.2 to 1.3.4 or 1.3.6 results in the Icon/button being usable again.

This appears to work because it seems the rest of the icon breaking changes were not incorporated until v1.3.8 .. and from that version up, trying the same thing no longer works.
It's only a partial solution, if that, but maybe it's helpful ..

cheers.

That sure is helpful.
Thanks!

I even tried building version 1.3.8 as per your instructions and it works here (Linux Mint 17.3)...
The icon behaves as it should.
I have not (yet) tried any higher versions.

One thing though: the refresh button in the logger does not work :? .
Have to refresh the webpage itself to actually fill the logger...
Linux Mint 17.3
Pale Moon latest

User avatar
r4and0mUs3r
Newbie
Newbie
Posts: 6
Joined: Fri, 15 Feb 2019, 06:41

Re: How to install uMatrix in Pale Moon 27 in GNU/Linux (Ubuntu)

Unread postby r4and0mUs3r » Fri, 15 Feb 2019, 18:47

.. upon further investigation .. if, as it seems, v1.3.12 is the last XUL compatible version, it appears there's only one line change needed in the "Update Badge" section of the "tabs.js" file in order for the Icon/button to appear correctly ..

change this

Code: Select all

vAPI.setIcon(
            tabId,
            'img/browsericons/icon19-' + iconId + '.png',
            { text: badgeStr, color: '#666' }
        );

to this

Code: Select all

vAPI.setIcon(tabId, iconId, badgeStr);


.. apply the patch, build, test .. (it seems to be working correctly here)

To guess about the refresh button on the logger page, there's probably something that's not getting passed along properly .. the refresh button seems to work correctly in 1.3.6 .. haven't really gotten into the code otherwise beyond looking for the (why) of the Icon/button not appearing properly.

User avatar
nicolaasjan
Hobby Astronomer
Hobby Astronomer
Posts: 18
Joined: Fri, 28 Jul 2017, 14:44
Location: The Netherlands

Re: How to install uMatrix in Pale Moon 27 in GNU/Linux (Ubuntu)

Unread postby nicolaasjan » Fri, 15 Feb 2019, 20:35

r4and0mUs3r wrote:<---Snip--->

<---Snip--->

To guess about the refresh button on the logger page, there's probably something that's not getting passed along properly .. the refresh button seems to work correctly in 1.3.6 .. haven't really gotten into the code otherwise beyond looking for the (why) of the Icon/button not appearing properly.

Thanks for looking into it.
I'm afraid I can't help you with troubleshooting, because I am not a programmer...
I will try building v1.3.12 tomorrow.

The issue with the logger is not really a showstopper for me anyway.
Linux Mint 17.3
Pale Moon latest

User avatar
r4and0mUs3r
Newbie
Newbie
Posts: 6
Joined: Fri, 15 Feb 2019, 06:41

Re: How to install uMatrix in Pale Moon 27 in GNU/Linux (Ubuntu)

Unread postby r4and0mUs3r » Fri, 15 Feb 2019, 22:09

.. (apologies for the clutter) ..

.. upon slightly further investigation .. it does seem to have been an issue with something not being passed along correctly to the function attached to the Logger refresh button and also only requires one line change in the "logger-ui.js" file ..

in logger-ui.js -> var refreshTab = function() {

change this

Code: Select all

{ what: 'forceReloadTab', tabId: parseInt(matches[1], 10) }

to this

Code: Select all

{ what: 'forceReloadTab', tabId: matches[1] }


.. and functionality of the Logger refresh button seems to work correctly again.

User avatar
nicolaasjan
Hobby Astronomer
Hobby Astronomer
Posts: 18
Joined: Fri, 28 Jul 2017, 14:44
Location: The Netherlands

Re: How to install uMatrix in Pale Moon 27 in GNU/Linux (Ubuntu)

Unread postby nicolaasjan » Sat, 16 Feb 2019, 10:54

r4and0mUs3r wrote:<---Snip--->

<---Snip--->

Thanks again!
As far as I can see it works well.
The Logger refresh button is functional again!

I have changed the incorrect version number in the install.rdf file in the *.xpi to 1.3.12
Image

Testing on https://browserleaks.com/javascript shows uMatrix is functioning as it should.

This is indeed the last non-webext version... :(
Linux Mint 17.3
Pale Moon latest

User avatar
r4and0mUs3r
Newbie
Newbie
Posts: 6
Joined: Fri, 15 Feb 2019, 06:41

Re: How to install uMatrix in Pale Moon 27 in GNU/Linux (Ubuntu)

Unread postby r4and0mUs3r » Sat, 16 Feb 2019, 21:37

ah .. good good ..

Unfortunately it'll require a far better scripter/coder to figure out how much other work might be required, or if it's feasibly possible to adapt the newer/newest version to work with Pale Moon;
.. or .. maybe .. if possible .. to just integrate .. the upgrades, updates, and fixes to the blocking features .. into v1.3.12.

This version does seem to continue working correctly now though, so, there's that .. glad the changes were helpful ..

cheers.

vannilla
Lunatic
Lunatic
Posts: 344
Joined: Sat, 05 May 2018, 13:29

Re: How to install uMatrix in Pale Moon 27 in GNU/Linux (Ubuntu)

Unread postby vannilla » Sat, 23 Feb 2019, 12:22

You can now install this extension directly from the add-ons websites.

Pale Moon: http://addons.palemoon.org/addon/ematrix/

Basilisk: http://addons.basilisk-browser.org/addon/ematrix/

User avatar
back2themoon
Board Warrior
Board Warrior
Posts: 1338
Joined: Sun, 19 Aug 2012, 20:32

Re: How to install uMatrix in Pale Moon 27 in GNU/Linux (Ubuntu)

Unread postby back2themoon » Sat, 23 Feb 2019, 13:41

Brilliant, thanks to all involved. :thumbup:
Safe Mode / clean profile info: Help/Restart in Safe Mode
Information to include when asking for support - How to apply user agent overrides

Windows 10 Pro 1809 • Pale Moon • Interlink • Emsisoft Anti-Malware

User avatar
r4and0mUs3r
Newbie
Newbie
Posts: 6
Joined: Fri, 15 Feb 2019, 06:41

Re: How to install uMatrix in Pale Moon 27 in GNU/Linux (Ubuntu)

Unread postby r4and0mUs3r » Sat, 23 Feb 2019, 19:58

.. a little clarity .. eMatrix is it's own fork of an earlier version of uMatrix .. not a build from the discussion in this thread.

vannilla
Lunatic
Lunatic
Posts: 344
Joined: Sat, 05 May 2018, 13:29

Re: How to install uMatrix in Pale Moon 27 in GNU/Linux (Ubuntu)

Unread postby vannilla » Sun, 24 Feb 2019, 00:25

r4and0mUs3r wrote:.. a little clarity .. eMatrix is it's own fork of an earlier version of uMatrix .. not a build from the discussion in this thread.

Sort of.
I followed MoonSavvy's guide from this thread, then added my own changes.
It's indeed an earlier version, but it's still from this discussion.
Anyway, eMatrix and uMatrix at this point in time are effectively two separate programs and things related to uMatrix are not necessarily related to eMatrix too.
I wonder if I should open a support thread, but it'll have to wait for the next version.

coffeebreak
Board Warrior
Board Warrior
Posts: 1584
Joined: Sat, 26 Sep 2015, 04:51
Location: U.S.

Re: How to install uMatrix in Pale Moon 27 in GNU/Linux (Ubuntu)

Unread postby coffeebreak » Sun, 24 Feb 2019, 01:48

vannilla wrote:It's indeed an earlier version, but it's still from this discussion.

From curiosity, which version is it?

vannilla
Lunatic
Lunatic
Posts: 344
Joined: Sat, 05 May 2018, 13:29

Re: How to install uMatrix in Pale Moon 27 in GNU/Linux (Ubuntu)

Unread postby vannilla » Sun, 24 Feb 2019, 12:26

coffeebreak wrote:From curiosity, which version is it?

I literally followed MoonSavvy's guide from earlier in this thread, so 1.3.2.
After the fact I went to look at the uMatrix changelog and decided that the amount of new features/bug fixes compared to the amount of work needed to make it compatible with Pale Moon, isn't worth a later version.

User avatar
r4and0mUs3r
Newbie
Newbie
Posts: 6
Joined: Fri, 15 Feb 2019, 06:41

Re: How to install uMatrix in Pale Moon 27 in GNU/Linux (Ubuntu)

Unread postby r4and0mUs3r » Mon, 25 Feb 2019, 08:53

The work required to get 1.3.12 working properly on Pale Moon amounted to following the exact same instructions and making two more very small edits .. but now this is getting off topic .. hope the fork goes well.

vannilla
Lunatic
Lunatic
Posts: 344
Joined: Sat, 05 May 2018, 13:29

Re: How to install uMatrix in Pale Moon 27 in GNU/Linux (Ubuntu)

Unread postby vannilla » Mon, 25 Feb 2019, 15:21

r4and0mUs3r wrote:hope the fork goes well.

Well, until people start reporting bugs, I'd say it's only a matter of telling people the add-on is available (for example, instead of suggesting uMatrix, suggest eMatrix.)
This version is quite stable, so until Pale Moon or Basilisk get significant changes I don't really need to touch anything.

sashsz
Newbie
Newbie
Posts: 4
Joined: Fri, 02 Mar 2018, 07:40

Re: How to install uMatrix in Pale Moon 27 in GNU/Linux (Ubuntu)

Unread postby sashsz » Fri, 08 Mar 2019, 08:20

Hey folks,

Thank you for the research and fixes. I've noticed there is a performance degradation around 5-10% between 1.3.6 (1.3.3b8) and 1.3.12. It seems that 1.3.6 is the fastest one compared to 1.3.2 and 1.1.4


Return to “Tutorials/Howtos”

Who is online

Users browsing this forum: No registered users and 1 guest