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.
calibrations
Moongazer
Moongazer
Posts: 12
Joined: Tue, 26 Dec 2017, 15:35

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

Postby calibrations » Fri, 05 Jan 2018, 23:42

That's my github! Sorry I'm so late to the party, I was having trouble getting a confirmation email through to register on here.

There were a number of problems with newer versions built from source that I have tried to patch myself, but I must first admit that I am a complete and utter noob with no experience other than playing around in python for personal use. In particular things like the referer spoofer and as you've noticed blocking inline scripts were broken, I think I have fixed those but cannot be sure I haven't made any mistakes. I hope someone can look at my code (in legacy firefox branch) and look for anything obvious or bad style or the like.

Anyways, I was going to ask if there is anyone with more experience who might be able to assist with a proper fork so people who are unable to build from source can still use it . I have attached my patches that I have so far to be applied to version 1.2.0, with the only bug I know of being that blocking web workers doesn't work in Pale Moon (it works fine in Firefox 52, but I think it can't be made to work until support for child-src in Content Security Policy is added for those interested). Test at your own risk!
Attachments
for-1.2.0.patch
(5.72 KiB) Downloaded 85 times

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 21186
Joined: Sun, 28 Aug 2011, 17:27
Location: 58.5°N 15.5°E
Contact:

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

Postby Moonchild » Sat, 06 Jan 2018, 00:08

For the record, "child-src" was already obsolete when it landed in the spec. It should not be used.
Improving Mozilla code: You know you're on the right track with code changes when you spend the majority of your time deleting code.

"The wisest men follow their own direction." - Euripedes

User avatar
ketmar
Lunatic
Lunatic
Posts: 300
Joined: Tue, 28 Jul 2015, 11:10
Location: Earth

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

Postby ketmar » Sat, 06 Jan 2018, 00:35

2calibrations: it looks like your patch is working (and mine was completely wrong, lol). i didn't do a proper check, tho (only checked that sites are really blocked, and inline scripts aren't fired anymore). anyway, i switched to your patched version, so i think we'll see if something will go wrong. ;-)

tnx for your work!
Last edited by ketmar on Sat, 06 Jan 2018, 00:35, edited 1 time in total.

User avatar
ketmar
Lunatic
Lunatic
Posts: 300
Joined: Tue, 28 Jul 2015, 11:10
Location: Earth

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

Postby ketmar » Sat, 06 Jan 2018, 00:41

2Moonchild: will Pale Moon have "worker-src" implemented then? or it is already there, and i missed it?

calibrations
Moongazer
Moongazer
Posts: 12
Joined: Tue, 26 Dec 2017, 15:35

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

Postby calibrations » Sat, 06 Jan 2018, 14:31

Thanks for the heads up Moonchild, I'll keep that in mind :) I had seen that it was deprecated in Pale Moon issue 949 when I was looking for more information on it, I was trying to point out to people not to expect it to work but perhaps I should have been clearer. I'd left it in for now incase anyone wanted to to try it out with Firefox ESR where it does still work (even the Webextension version of uMatrix uses it, Chrome is still the only browser with worker-src it seems).

Ketmar I don't think you were far wrong, you were looking in the right places at least. Thanks for your patches so far, I wouldn't have been inspired to look without your first patch :D

jars_
Fanatic
Fanatic
Posts: 144
Joined: Tue, 27 Dec 2016, 00:12

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

Postby jars_ » Wed, 21 Feb 2018, 11:05

Not working tab "hosts files", not shown default files with block-rules. Trying version 1.21b2
with patch 0001-pm-messaging-API-hackfix.patch ketmar
error 1.21b2
Image
working version v 1.16
Image
Is there a solution for this case?

jars_
Fanatic
Fanatic
Posts: 144
Joined: Tue, 27 Dec 2016, 00:12

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

Postby jars_ » Sun, 04 Mar 2018, 12:47

version uMatrix 1.3.2 works fine, without any patches ;)
Last edited by jars_ on Sun, 04 Mar 2018, 12:51, edited 1 time in total.

User avatar
ketmar
Lunatic
Lunatic
Posts: 300
Joined: Tue, 28 Jul 2015, 11:10
Location: Earth

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

Postby ketmar » Sun, 04 Mar 2018, 12:59

no, it doesn't.

User avatar
Moonraker
Keeps coming back
Keeps coming back
Posts: 865
Joined: Wed, 30 Sep 2015, 23:02
Location: Lincolnshire.UK.

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

Postby Moonraker » Sun, 04 Mar 2018, 13:57

ketmar wrote:no, it doesn't.

Are you going to be punch or judy...?..lol. :D
Linux Lite 3.6 64bit.
Pale moon 27.9.0

jars_
Fanatic
Fanatic
Posts: 144
Joined: Tue, 27 Dec 2016, 00:12

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

Postby jars_ » Sun, 04 Mar 2018, 14:11

no, it doesn't.

:?: it`s not perfect, had an error in Console, yes...

Code: Select all

Метка времени: 04.03.2018 15:43:18
Ошибка: uncaught exception: Error opening input stream (invalid filename?): chrome://umatrix/content/js/contentscript-end.js

and this is not very good, but works; blocking scripts and xhr, all options shown correctly - which is exactly what I need.
To fix this error would be good, of course. But I have not yet noticed any consequences. :think:

jars_
Fanatic
Fanatic
Posts: 144
Joined: Tue, 27 Dec 2016, 00:12

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

Postby jars_ » Sun, 04 Mar 2018, 14:34

there is still no such file(contentscript-end.js), so just comment out the line 306 in frameModule.js to get rid of the error.
frameModule.js :
line 306: // lss(this.contentBaseURI + 'contentscript-end.js', sandbox);

User avatar
ketmar
Lunatic
Lunatic
Posts: 300
Joined: Tue, 28 Jul 2015, 11:10
Location: Earth

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

Postby ketmar » Sun, 04 Mar 2018, 14:40

it doesn't block all scripts without proper fix. you just happened to not notice those rare circumstances where it doesn't. please, don't tell that "it works" until you fully understand how exactly uMatrix works internally, and why some internal errors matters or not.

User avatar
nicolaasjan
Moongazer
Moongazer
Posts: 7
Joined: Fri, 28 Jul 2017, 14:44

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

Postby nicolaasjan » Fri, 23 Mar 2018, 15:48

I was able to build uMatrix up until version 1.3.2 (albeit with the contentscript-end.js error in the console), but with 1.3.4 I get this where the icon should be:

Image

When I hover over it, a small rectangle shows and when I click on it the uMatrix interface opens.
Is there a way to fix this bug and the script error as well?

For now I have disabled uMatrix and enabled NoScript again...

User avatar
ketmar
Lunatic
Lunatic
Posts: 300
Joined: Tue, 28 Jul 2015, 11:10
Location: Earth

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

Postby ketmar » Fri, 23 Mar 2018, 16:36

but what is wrong with using the old version, which works perfectly?


Return to “Tutorials/Howtos”

Who is online

Users browsing this forum: No registered users and 4 guests