New uBlock Origin version released (Special mod by @AstroSkipper)

Add-ons for Pale Moon and other applications
General discussion, compatibility, contributed extensions, themes, plugins, and more.

Moderators: FranklinDM, Lootyhoof

User avatar
UCyborg
Fanatic
Fanatic
Posts: 180
Joined: 2019-01-10, 09:37

Re: New uBlock Origin version released (Special mod by @AstroSkipper)

Unread post by UCyborg » 2024-01-27, 05:47

athenian200 wrote:
2024-01-24, 19:19
I guess adapting it to Epyrus is too much to ask...
Yes, it is...takes changing one line of code.

Image

Image

js/vapi-background.js

Code: Select all

vAPI.thunderbird = Services.appinfo.ID === '{3550f703-e582-4d05-9a08-453d09bdfdc6}'
                || Services.appinfo.ID === '{29877c1d-27df-4421-9a79-382c31470151}'; // Epyrus, may need a check for it specifically in the future
Shown as targeted to Epyrus in add-ons manager by adding an entry in install.rdf (I changed the version on my end as I consider it b3 - b2 was the one in the pull request from its GitHub repo adding temporary rules):

Image

Code: Select all

<!-- Epyrus -->
<em:targetApplication>
    <Description>
        <em:id>{29877c1d-27df-4421-9a79-382c31470151}</em:id>
        <em:minVersion>1.0.0</em:minVersion>
        <em:maxVersion>2.*</em:maxVersion>
    </Description>
</em:targetApplication>

User avatar
athenian200
Contributing developer
Contributing developer
Posts: 1537
Joined: 2018-10-28, 19:56
Location: Georgia

Re: New uBlock Origin version released (Special mod by @AstroSkipper)

Unread post by athenian200 » 2024-01-27, 06:29

UCyborg wrote:
2024-01-27, 05:47
Yes, it is...takes changing one line of code.
Wow, that was all it needed? I mean, I figured it wouldn't take extensive changes, but I wasn't expecting it to be that easy. Good work! :thumbup:

It appears that uBlock Origin breaks the way we normally implement extension compatibility mode by explicitly checking Services.appInfo.ID for Thunderbird's GUID as the trigger for using the Thunderbird version of it's API. The normal way our extension compatibility mode is implemented is enough to accept Thunderbird's GUID if that's all that's in the install manifest, but if the application is coded like this, to just straight up check for Thunderbird's GUID using JS and presumably fall back to Firefox mode if it doesn't find it, well... that explains why it wasn't working.
"The Athenians, however, represent the unity of these opposites; in them, mind or spirit has emerged from the Theban subjectivity without losing itself in the Spartan objectivity of ethical life. With the Athenians, the rights of the State and of the individual found as perfect a union as was possible at all at the level of the Greek spirit." -- Hegel's philosophy of Mind

User avatar
UCyborg
Fanatic
Fanatic
Posts: 180
Joined: 2019-01-10, 09:37

Re: New uBlock Origin version released (Special mod by @AstroSkipper)

Unread post by UCyborg » 2024-01-27, 19:19

Yup, now I managed to decouple it from Thunderbird application ID, hopefully no regressions, all relevant changes are still in js/vapi-background.js. Seems gorhill was also dealing with quirks of XUL applications, judging by the old comments in there.

uBlock0@raymondhill.net.xpi

f-117
Moonbather
Moonbather
Posts: 72
Joined: 2017-02-04, 20:41

Re: New uBlock Origin version released (Special mod by @AstroSkipper)

Unread post by f-117 » 2024-01-27, 19:47

UCyborg wrote:
2024-01-27, 19:19
Yup, now I managed to decouple it from Thunderbird application ID, hopefully no regressions, all relevant changes are still in js/vapi-background.js. Seems gorhill was also dealing with quirks of XUL applications, judging by the old comments in there.

uBlock0@raymondhill.net.xpi
YES. That did the trick!

I had a hard time understanding your vapi-background.js. I could not see Epyrus application ID number. That's what confused me.

Scott

User avatar
ron_1
Moon Magic practitioner
Moon Magic practitioner
Posts: 2860
Joined: 2012-06-28, 01:20

Re: New uBlock Origin version released (Special mod by @AstroSkipper)

Unread post by ron_1 » 2024-01-27, 21:24

So a question to those who have installed this new version of uBo: Does it work any better than JustOff's version? Or is the only difference a higher version number?

User avatar
frostknight
Fanatic
Fanatic
Posts: 209
Joined: 2022-08-10, 02:25

Re: New uBlock Origin version released (Special mod by @AstroSkipper)

Unread post by frostknight » 2024-01-27, 21:31

ron_1 wrote:
2024-01-27, 21:24
So a question to those who have installed this new version of uBo: Does it work any better than JustOff's version? Or is the only difference a higher version number?
So far, not sure.

This one also fails to update online malicious url blocklist also

Not a clue why though.
Freedom is never more than one generation away from extinction. Feelings are not facts
If you wish to be humbled, try to exalt yourself long term If you wish to be exalted, try to humble yourself long term
Favourite operating systems: Hyperbola Devuan OpenBSD
Peace Be With us All!
Also, say NO to Fascism and Corporatism as much as possible!

User avatar
ron_1
Moon Magic practitioner
Moon Magic practitioner
Posts: 2860
Joined: 2012-06-28, 01:20

Re: New uBlock Origin version released (Special mod by @AstroSkipper)

Unread post by ron_1 » 2024-01-27, 22:08

Off-topic:
frostknight wrote:
2024-01-27, 21:31
This one also fails to update online malicious url blocklist also

Not a clue why though.
That list is no longer maintained. Uncheck that box and add the below manually (at the bottom of the dashboard, Import). Once you add it, it will show up under "Custom."

Code: Select all

https://malware-filter.gitlab.io/malware-filter/urlhaus-filter-online.txt

User avatar
UCyborg
Fanatic
Fanatic
Posts: 180
Joined: 2019-01-10, 09:37

Re: New uBlock Origin version released (Special mod by @AstroSkipper)

Unread post by UCyborg » 2024-01-28, 16:05

This uBO is based on the version 1.16.4.31b2, published on GitHub here. Compared to the version linked on the releases page, it adds ability to add rules temporarily like the modern uBO, changes become permanent when you confirm you want them to be permanent, you also have the tab with keyboard shortcuts settings in the dashboard.

Core changes by AstroSkipper are modified resources dealing with filter lists, so the stuff inside extension's assets folder and smaller changes to install.rdf for the extension install in Borealis Navigator and on variants of Pale Moon based on a bit older codebase.

I changed the file js/vapi-background.js to not depend on Thunderbird application ID checks that were there before. Epyrus application ID is only in install.rdf in my version, I didn't publish that version where I added it in vapi-background.js. I only left those specific application checks dealing with an older Android version of Firefox (Fennec) and there's also another one for Pale Moon, must be related to something cosmetic.

Code: Select all

if ( vAPI.palemoon && !µBlock.hiddenSettings.toolbarButtonForceTypeMenu ) {
        toolbarButton.setAttribute('type', 'panel');
    } else {
        toolbarButton.setAttribute('type', 'menu');
    }
So the biggest thing is that built-in filter lists are updated. But the problem with these in general though, they will not work fully in the old uBO. Because newer versions of uBO have features that the old uBO doesn't have and some directives in those lists may depend on these features.
Last edited by UCyborg on 2024-01-28, 16:12, edited 1 time in total.

User avatar
back2themoon
Moon Magic practitioner
Moon Magic practitioner
Posts: 2411
Joined: 2012-08-19, 20:32

Re: New uBlock Origin version released (Special mod by @AstroSkipper)

Unread post by back2themoon » 2024-01-28, 16:11

frostknight wrote:
2024-01-27, 21:31
This one also fails to update online malicious url blocklist also. Not a clue why though.
It updates fine here. Did you follow the installation instructions correctly?

User avatar
andyprough
Keeps coming back
Keeps coming back
Posts: 752
Joined: 2020-05-31, 04:33

Re: New uBlock Origin version released (Special mod by @AstroSkipper)

Unread post by andyprough » 2024-01-29, 06:37

back2themoon wrote:
2024-01-28, 16:11
frostknight wrote:
2024-01-27, 21:31
This one also fails to update online malicious url blocklist also. Not a clue why though.
It updates fine here. Did you follow the installation instructions correctly?
You're right, online malicious url blocklist just now updated fine for me.

User avatar
billmcct
Keeps coming back
Keeps coming back
Posts: 959
Joined: 2012-09-04, 15:19
Location: Costa Rica & Union City Georgia USA

Re: New uBlock Origin version released (Special mod by @AstroSkipper)

Unread post by billmcct » 2024-01-29, 11:59

Installed 1.16.4.32.
Can't get to the Dashboard to import my filters.
Shows this:
2024-01-29 06_53_31-Add-ons Manager - Pale Moon.png
The buttons are partially there but also unclickable. Anyone seen this?
You do not have the required permissions to view the files attached to this post.
--------------------------------------------------------------------------------------------------------------
The difference between the Impossible and the Possible lies in a man's Determination.
Tommy Lasorda

User avatar
Night Wing
Knows the dark side
Knows the dark side
Posts: 5174
Joined: 2011-10-03, 10:19
Location: Piney Woods of Southeast Texas, USA

Re: New uBlock Origin version released (Special mod by @AstroSkipper)

Unread post by Night Wing » 2024-01-29, 13:58

@ billmcct

Did you "right click" on the UBO "shield" itself? This is how my Dashboard shows up on "31". Unless this does not work on "32".
Last edited by Night Wing on 2024-01-29, 15:40, edited 1 time in total.
Linux Mint 21.3 (Virginia) Xfce w/ Linux Pale Moon, Linux Waterfox, Linux SeaLion, Linux Firefox
MX Linux 23.2 (Libretto) Xfce w/ Linux Pale Moon, Linux Waterfox, Linux SeaLion, Linux Firefox
Linux Debian 12.5 (Bookworm) Xfce w/ Linux Pale Moon, Linux Waterfox, Linux SeaLion, Linux Firefox

User avatar
nicolaasjan
Moon lover
Moon lover
Posts: 90
Joined: 2017-07-28, 14:44
Location: The Netherlands

Re: New uBlock Origin version released (Special mod by @AstroSkipper)

Unread post by nicolaasjan » 2024-01-29, 14:00

billmcct wrote:
2024-01-29, 11:59
Installed 1.16.4.32.
Can't get to the Dashboard to import my filters.
Shows this:

2024-01-29 06_53_31-Add-ons Manager - Pale Moon.png

The buttons are partially there but also unclickable. Anyone seen this?
Try the updated version.
There was a bug in the previous one.
screenshot1.png
You do not have the required permissions to view the files attached to this post.
Linux Mint 20.3 Mate 64bit
Pale Moon latest

User avatar
billmcct
Keeps coming back
Keeps coming back
Posts: 959
Joined: 2012-09-04, 15:19
Location: Costa Rica & Union City Georgia USA

Re: New uBlock Origin version released (Special mod by @AstroSkipper)

Unread post by billmcct » 2024-01-29, 14:26

@nicolaasjan, Thanks for that. @AstroSkipper also replied to this question from here on the MSFN forum.
However I have not been able to reply to that post.
Can't type anything into the reply box.
Anyway downloaded again and will see what happens.
--------------------------------------------------------------------------------------------------------------
The difference between the Impossible and the Possible lies in a man's Determination.
Tommy Lasorda

User avatar
back2themoon
Moon Magic practitioner
Moon Magic practitioner
Posts: 2411
Joined: 2012-08-19, 20:32

Re: New uBlock Origin version released (Special mod by @AstroSkipper)

Unread post by back2themoon » 2024-01-29, 18:27

I think you need to do the full uninstall process again, before installing the 1.16.4.32 update. I tried directly updating 1.16.4.31 and got both versions installed side-by-side. 1.16.4.32 has a new name, too ("Legacy" added in the title).

I then uninstalled 1.16.4.31 but the new version was clearly having some issues like incorrect default filters etc. Performed the full uninstall process (as described in the MSFN post), reinstalled 1.16.4.32 and it is working fine.

User avatar
billmcct
Keeps coming back
Keeps coming back
Posts: 959
Joined: 2012-09-04, 15:19
Location: Costa Rica & Union City Georgia USA

Re: New uBlock Origin version released (Special mod by @AstroSkipper)

Unread post by billmcct » 2024-01-29, 18:59

back2themoon wrote:
2024-01-29, 18:27
I think you need to do the full uninstall process again, before installing the 1.16.4.32 update. I tried directly updating 1.16.4.31 and got both versions installed side-by-side. 1.16.4.32 has a new name, too ("Legacy" added in the title).

I then uninstalled 1.16.4.31 but the new version was clearly having some issues like incorrect default filters etc. Performed the full uninstall process (as described in the MSFN post), reinstalled 1.16.4.32 and it is working fine.
Thanks, I did that initially and also when reinstalling 1.16.4.30 and reloading my filters and rules + the original ublock0.sqlite. The updated 1.16.4.32 fixed the Dashboard problem, however I have another problem with the button drop-down in both Pale Moon and Basilisk. Trying to see if it's another of my 85 enabled add-ons interfering.
This could take some time.
--------------------------------------------------------------------------------------------------------------
The difference between the Impossible and the Possible lies in a man's Determination.
Tommy Lasorda

User avatar
back2themoon
Moon Magic practitioner
Moon Magic practitioner
Posts: 2411
Joined: 2012-08-19, 20:32

Re: New uBlock Origin version released (Special mod by @AstroSkipper)

Unread post by back2themoon » 2024-01-29, 19:09

billmcct wrote:
2024-01-29, 18:59
Thanks, I did that initially and also reloading my filters and rules + the original ublock0.sqlite.
Do you mean you put back the ublock0.sqlite from the previous version, to work with the new one?

If so, that's the cause of your problems. It is explicitly mentioned you should delete that. Follow the uninstall process carefully.

User avatar
billmcct
Keeps coming back
Keeps coming back
Posts: 959
Joined: 2012-09-04, 15:19
Location: Costa Rica & Union City Georgia USA

Re: New uBlock Origin version released (Special mod by @AstroSkipper)

Unread post by billmcct » 2024-01-29, 19:11

No, I reinstalled 1.16.4.30. I'm using the 1.16.4.32 in a portable version to test with.
--------------------------------------------------------------------------------------------------------------
The difference between the Impossible and the Possible lies in a man's Determination.
Tommy Lasorda

User avatar
Kruppt
Apollo supporter
Apollo supporter
Posts: 47
Joined: 2018-07-23, 22:32

Re: New uBlock Origin version released (Special mod by @AstroSkipper)

Unread post by Kruppt » 2024-01-29, 21:10

Export My Filters | My Rules | Trusted Sites , then remove Ublock ,
then shutdown Pale Moon. Remove the /extension-data/ublock0.sqlite file
from your profile sub-directory. Start up Pale Moon and install the new Ublock XPI file,
then import your filters etc, (not the full backup) Then from the Filter List click on
Update now and all should work properly.

User avatar
frostknight
Fanatic
Fanatic
Posts: 209
Joined: 2022-08-10, 02:25

Re: New uBlock Origin version released (Special mod by @AstroSkipper)

Unread post by frostknight » 2024-01-30, 18:41

billmcct wrote:
2024-01-29, 19:11
No, I reinstalled 1.16.4.30. I'm using the 1.16.4.32 in a portable version to test with.
Where is the 1.16.4.32? I only see 1.16.4.31 as a download option.
Freedom is never more than one generation away from extinction. Feelings are not facts
If you wish to be humbled, try to exalt yourself long term If you wish to be exalted, try to humble yourself long term
Favourite operating systems: Hyperbola Devuan OpenBSD
Peace Be With us All!
Also, say NO to Fascism and Corporatism as much as possible!