Some sites display big black Q Topic is solved

Users and developers helping users with generic and technical Pale Moon issues on all operating systems.

Moderator: trava90

Forum rules
This board is for technical/general usage questions and troubleshooting for the Pale Moon browser only.
Technical issues and questions not related to the Pale Moon browser should be posted in other boards!
Please keep off-topic and general discussion out of this board, thank you!
User avatar
adoxa
Lunatic
Lunatic
Posts: 322
Joined: 2019-03-16, 13:26
Location: Qld, Aus.
Contact:

Re: Some sites display big black Q

Unread post by adoxa » 2024-06-28, 06:09

moonbat wrote:
2024-06-28, 03:58
You as an end user shouldn't have to enter a programmatically correct array of arrays as a parameter. Apparently displaying a dialog box with an editable list of filters is rocket science compared to the actual filtering code :roll:
Did you miss "Launch Editor"? That allows separate editing of the host/path/search/replace strings.

User avatar
moonbat
Knows the dark side
Knows the dark side
Posts: 5417
Joined: 2015-12-09, 15:45
Contact:

Re: Some sites display big black Q

Unread post by moonbat » 2024-06-28, 06:39

That's fine but when one has to add a readymade string, it shouldn't need careful parsing of the actual code to insert correctly at the end. It's also a limitation of restartless extensions that have very rudimentary preferences support that appears directly on the addons page instead of a separate dialog under the developer's control.

User avatar
adoxa
Lunatic
Lunatic
Posts: 322
Joined: 2019-03-16, 13:26
Location: Qld, Aus.
Contact:

Re: Some sites display big black Q

Unread post by adoxa » 2024-06-28, 06:48

moonbat wrote:
2024-06-28, 06:39
That's fine but when one has to add a readymade string, it shouldn't need careful parsing of the actual code to insert correctly at the end.
Okay, I guess I missed the point you were making. :) I've been wanting to modify it (add new filters at the top), this is something else to keep in mind...

User avatar
moonbat
Knows the dark side
Knows the dark side
Posts: 5417
Joined: 2015-12-09, 15:45
Contact:

Re: Some sites display big black Q

Unread post by moonbat » 2024-06-28, 06:59

Have you forked it, or are planning to do so?

User avatar
adoxa
Lunatic
Lunatic
Posts: 322
Joined: 2019-03-16, 13:26
Location: Qld, Aus.
Contact:

Re: Some sites display big black Q

Unread post by adoxa » 2024-06-28, 07:02

Planning to, heaven knows when, though.

User avatar
Navigator
Fanatic
Fanatic
Posts: 133
Joined: 2023-02-24, 17:53

Re: Some sites display big black Q

Unread post by Navigator » 2024-06-28, 17:51

Can a @layer fix be applied through Stylem or is Modify HTTP Response required?

User avatar
adoxa
Lunatic
Lunatic
Posts: 322
Joined: 2019-03-16, 13:26
Location: Qld, Aus.
Contact:

Re: Some sites display big black Q

Unread post by adoxa » 2024-06-29, 00:05

To do it through Stylem would require (I believe) copying almost the entire CSS, then removing all the @layer references. So sure, it's possible, but not really worth the effort.

User avatar
Bilbo47
Lunatic
Lunatic
Posts: 288
Joined: 2017-11-18, 04:24

Re: Some sites display big black Q

Unread post by Bilbo47 » 2024-06-30, 14:29

Walter Dnes wrote:
2024-06-26, 20:41
Step by step
Wow that works! Amazing :) Thanks for posting the guide.

User avatar
tellu-white
Fanatic
Fanatic
Posts: 129
Joined: 2022-03-08, 22:02

Re: Some sites display big black Q

Unread post by tellu-white » 2024-12-09, 16:59

moonbat wrote : «Like so many extensions I've seen - this one ( Modify HTTP Response 1.3.8 by JustOff ) has a horrible UX. You as an end user shouldn't have to enter a programmatically correct array of arrays as a parameter.»
https://forum.palemoon.org/viewtopic.php?f=3&t=31281#p252911
adoxa wrote : «Did you miss "Launch Editor"? That allows separate editing of the host/path/search/replace strings.»

moonbat wrote : «That's fine but when one has to add a readymade string, it shouldn't need careful parsing of the actual code to insert correctly at the end.»

adoxa wrote : «Okay, I guess I missed the point you were making. I've been wanting to modify it (add new filters at the top), this is something else to keep in mind...»

moonbat wrote : «Have you forked it, or are planning to do so?»

adoxa wrote : «Planning to, heaven knows when, though.»
***

I made the "Intercept & Modify HTTP Response 2.1" (Tellu White) add-on inspired by "Modify HTTP Response 1.3.8" (JustOff) add-on.

My add-on is easier to use and has some additional options :

https://forum.palemoon.org/viewtopic.php?f=70&t=31829#p257331

My add-on ( Intercept & Modify HTTP Response 2.1 ) fixes both problems described above by moonbat :

1. In my add-on, you no longer need to "programmatically correct array of arrays as a parameter" to enter a new filter. In my add-on, a new filter is added as posted, with a click on Add Filters From Backup ( To Current Filters ) option ( after right-click on button ).

2. In my add-on, you no longer need to "careful parsing the actual code to insert correctly" in Filters Manager ( Filters Editor in JustOff's addon ). There is no longer any need to modify the code of a "readymade string" if you want to enter it manually in the Filters Manager.

3. I added an important feature in my add-on: Convert Filter Syntax from Modify HTTP Response 1.3.8 (JustOff) to Intercept & Modify HTTP Response 2.1 (Tellu White) format, with just a few clicks.

***

HELP to Transfer ALL Existing Filters from Modify HTTP Response 1.3.8 (JustOff) add-on to Intercept & Modify HTTP Response 2.1 (Tellu White) add-on :

https://forum.palemoon.org/viewtopic.php?f=70&t=31829#p257566

***

I would appreciate any feedback.

Download link ( Intercept & Modify HTTP Response 2.1 ):

https://www.mediafire.com/file/z207t2i5x9r4wlb/Intercept_&_Modify_HTTP_Response_2_1.zip/file

User avatar
moonbat
Knows the dark side
Knows the dark side
Posts: 5417
Joined: 2015-12-09, 15:45
Contact:

Re: Some sites display big black Q

Unread post by moonbat » 2024-12-10, 02:13

tellu-white wrote:
2024-12-09, 16:59
I would appreciate any feedback.
I haven't given your extension a try yet - but why don't you publish it to the addons site? Given that JustOff is AWOL as it is, it would be good to have a maintained extension for the job right on our addons page instead of elsewhere.
"One hosts to look them up, one DNS to find them and in the darkness BIND them."

Image
KDE Neon on a Slimbook Excalibur (Ryzen 7 8845HS, 64 GB RAM)
AutoPageColor|PermissionsPlus|PMPlayer|Pure URL|RecordRewind|TextFX

User avatar
frostknight
Lunatic
Lunatic
Posts: 420
Joined: 2022-08-10, 02:25

Re: Some sites display big black Q

Unread post by frostknight » 2024-12-10, 03:17

moonbat wrote:
2024-12-10, 02:13
Given that JustOff is AWOL as it is, it would be good to have a maintained extension for the job right on our addons page instead of elsewhere.
Sadly, because of the war.

Which reminds me, it would be nice if someone would maintain a ublock origin legacy fork like justoff until he's back or longer.

Astroskipper hasn't released in a bit though anyhow.
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
Say NO to Fascism and Corporatism as much as possible!
Also, Peace Be With us All!

User avatar
moonbat
Knows the dark side
Knows the dark side
Posts: 5417
Joined: 2015-12-09, 15:45
Contact:

Re: Some sites display big black Q

Unread post by moonbat » 2024-12-10, 07:16

UCyborg already has a fork and it's what is linked on the addons site.
"One hosts to look them up, one DNS to find them and in the darkness BIND them."

Image
KDE Neon on a Slimbook Excalibur (Ryzen 7 8845HS, 64 GB RAM)
AutoPageColor|PermissionsPlus|PMPlayer|Pure URL|RecordRewind|TextFX

Michaell
Lunatic
Lunatic
Posts: 312
Joined: 2018-05-26, 18:13

Re: Some sites display big black Q

Unread post by Michaell » 2024-12-10, 16:47

Walter Dnes wrote:
2024-06-28, 04:38
If you mean "really-a-period", you have to "escape" it like so "\\."
I am not regex guru, but I believe one backslash is the escape code and double backslash is to give the backslash character as text.
Win10home(1709), PM33.4.1-portable as of Nov 8, '24

User avatar
RealityRipple
Keeps coming back
Keeps coming back
Posts: 802
Joined: 2018-05-17, 02:34
Location: Los Berros Canyon, California
Contact:

Re: Some sites display big black Q

Unread post by RealityRipple » 2024-12-10, 18:28

Michaell wrote:
2024-12-10, 16:47
Walter Dnes wrote:
2024-06-28, 04:38
If you mean "really-a-period", you have to "escape" it like so "\\."
I am not regex guru, but I believe one backslash is the escape code and double backslash is to give the backslash character as text.
Unless the expression is stored as a string, in which case the first backslash escapes the second backslash in the string, and the escaped backslash escapes the period in the expression.

User avatar
tellu-white
Fanatic
Fanatic
Posts: 129
Joined: 2022-03-08, 22:02

Re: Some sites display big black Q

Unread post by tellu-white » 2024-12-11, 19:09

I did some more tests with Modify HTTP Response 1.3.8 (JustOff) add-on and discovered another problem: it doesn't save filters in Filters Editor if they contain unicode characters.

Test on forum page with "Profile Migration / Übertragung" topic:

URL:

https://forum.palemoon.org/viewtopic.php?f=7&t=26149

Filter for testing:

Code: Select all

[["forum.palemoon.org",["/viewtopic.*26149/",["/Übertragung/gi", "!!! REPLACED !!!"]]]]
Screenshots:
01.png
02.png
03.png
04.png
***

I also tested my add-on with filters that contain unicode characters and found that it doesn't work with such filters either. Therefore, I fixed this bug in version 3.0 of my add-on.

Tests on forum pages with the following topics (in German, French and Chinese):

1. Profil Migration / Übertragung
2. [SOLVED] message "Instruction non permise" apres palemoon-32.5.2
3. [CN]是否可以编译 Windows ARM32 架构的 Pale Moon

URLs:

https://forum.palemoon.org/viewtopic.php?f=7&t=26149

https://forum.palemoon.org/viewtopic.php?f=8&t=31748

https://forum.palemoon.org/viewtopic.php?f=11&t=28934

Filter for testing:

Code: Select all

[[`forum.palemoon.org`, `/viewtopic.*26149/`, [`/Übertragung/gi`, `!!! REPLACED !!!`]], [`forum.palemoon.org`, `/viewtopic.*31748/`, [`/Si vous êtes capable d'écrire votre problème en anglais, vous aurez plus de chances de trouver quelqu'un qui puisse vous aider à résoudre ce problème\./gi`, `!!! REPLACED !!!`]], [`forum.palemoon.org`, `/viewtopic.*28934/`, [`/我有一台 Surface RT。它的 IE 和 Edge 都十分让我失望。我觉得 Pale Moon 可能是一个不错的替代品,所以是否有可能编译,而方法是什么/gi`, `!!! REPLACED !!!`]]]
Screenshots:
05.png
06.png
07.png
08.png
09.png
10.png
***

IMPORTANT!

All filters tested before that were posted by other users did work correctly because they did not contain unicode characters.

***

Download link ( Intercept & Modify HTTP Response 3.0 ):

https://www.mediafire.com/file/b51e60yhhrdw423/Intercept_&_Modify_HTTP_Response_3_0.zip/file

User avatar
tellu-white
Fanatic
Fanatic
Posts: 129
Joined: 2022-03-08, 22:02

Re: Some sites display big black Q

Unread post by tellu-white » 2024-12-11, 22:05

This is a small bugfix.

Download link ( Intercept & Modify HTTP Response 3.1 ):

https://www.mediafire.com/file/36lh01tu1osmx4g/Intercept_&_Modify_HTTP_Response_3_1.zip/file

User avatar
tellu-white
Fanatic
Fanatic
Posts: 129
Joined: 2022-03-08, 22:02

Re: Some sites display big black Q

Unread post by tellu-white » 2024-12-12, 21:01

Important notice!

The add-on processes Filters in the sequence in which they were added.

In the previous post (the one about unicode characters) I tested filters on three pages of the Pale Moon Forum. All three Filters had the same HOST but different PATHs. This means that each filter was activated only for the targeted page (URL) of the Pale Moon Forum.

RULE:
Do not use PATH that target all pages that share a common HOST unless you need (for example) to target a string that appears in all pages, such as JAVASCRIPT (or CSS) code that causes problems for Pale Moon.

I will illustrate the problem that may arise by not following this rule on the three pages of the previous post. All three pages have common HOST = `forum.palemoon.org`. This time I will use a common PATH (RegEx) = `/\/.*/` (PATH that will target all pages in Pale Moon Forum). The filter (actually three filters) will be this:

Code: Select all

[[`forum.palemoon.org`, `/\/.*/`, [`/Übertragung/gi`, `!!! REPLACED !!!`]], [`forum.palemoon.org`, `/\/.*/`, [`/Si vous êtes capable d'écrire votre problème en anglais, vous aurez plus de chances de trouver quelqu'un qui puisse vous aider à résoudre ce problème\./gi`, `!!! REPLACED !!!`]], [`forum.palemoon.org`, `/\/.*/`, [`/我有一台 Surface RT。它的 IE 和 Edge 都十分让我失望。我觉得 Pale Moon 可能是一个不错的替代品,所以是否有可能编译,而方法是什么/gi`, `!!! REPLACED !!!`]]]
01.png
As you can see from the notes in the image above, no matter which of the three pages is opened, only the first Filter will be activated. When the add-on's code finds a Filter targeting the URL of the opened page, it will create a new "TracingListener" and will stop searching for another Filter. So, Filters 2 and 3 will NEVER be activated.

If using a "Host-Path" pair like the one above, then in order to target all three pages, a single filter with three "Search-Replace" pairs will have to be used. Such a filter will look like this:

Code: Select all

[`forum.palemoon.org`, `/\/.*/`, [`/Übertragung/gi`, `!!! REPLACED !!!`], [`/Si vous êtes capable d'écrire votre problème en anglais, vous aurez plus de chances de trouver quelqu'un qui puisse vous aider à résoudre ce problème\./gi`, `!!! REPLACED !!!`], [`/我有一台 Surface RT。它的 IE 和 Edge 都十分让我失望。我觉得 Pale Moon 可能是一个不错的替代品,所以是否有可能编译,而方法是什么/gi`, `!!! REPLACED !!!`]]
02.png
Also, to make other changes to those pages we will have to add new "Search-Replace" pairs and NOT new filters.

User avatar
tellu-white
Fanatic
Fanatic
Posts: 129
Joined: 2022-03-08, 22:02

Re: Some sites display big black Q

Unread post by tellu-white » 2024-12-13, 12:06

You can find more HELP about using the add-on Intercept & Modify HTTP Response (Tellu White) here:

https://forum.palemoon.org/viewtopic.php?f=70&t=31829#p257227

User avatar
tellu-white
Fanatic
Fanatic
Posts: 129
Joined: 2022-03-08, 22:02

Re: Some sites display big black Q

Unread post by tellu-white » 2024-12-15, 15:55

This is a bugfix.

Download link ( Intercept & Modify HTTP Response 3.2 ):

https://www.mediafire.com/file/chxjcoatzojrmtf/Intercept_&_Modify_HTTP_Response_3_2.zip/file

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 36849
Joined: 2011-08-28, 17:27
Location: Motala, SE
Contact:

Re: Some sites display big black Q

Unread post by Moonchild » 2024-12-15, 16:55

I suggest you make a dedicated topic in add-ons->Extension releases/support for your extension instead of this topic which has been solved and isn't really mean to be used as an ad-hoc release thread.
viewforum.php?f=71
"The world will not be destroyed by those who do evil, but by those who watch them without doing anything." - Albert Einstein
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

Post Reply