Request help with http modify response

For support with specific websites

Moderator: trava90

Forum rules
Please always mention the name/domain of the website in question in your topic title.
Please one website per topic thread (to help keep things organized). While behavior on different sites might at first glance seem similar, they are not necessarily caused by the same.

Please try to include any relevant output from the Toolkit Error Console or the Developer Tools Web Console using the following procedure:
  1. Clear any current output
  2. Navigate or refresh the page in question
  3. Copy and paste Errors or seemingly relevant Warnings into a single [ code ] block.
User avatar
tellu-white
Fanatic
Fanatic
Posts: 184
Joined: 2022-03-08, 22:02

Re: Request help with http modify response

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

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: 184
Joined: 2022-03-08, 22:02

Re: Request help with http modify response

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

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.
You do not have the required permissions to view the files attached to this post.

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

Re: Request help with http modify response

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

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: 184
Joined: 2022-03-08, 22:02

Re: Request help with http modify response

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

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: 37634
Joined: 2011-08-28, 17:27
Location: Motala, SE

Re: Request help with http modify response

Unread post by Moonchild » 2024-12-15, 17:02

Please make a dedicated release topic in viewforum.php?f=71
"A dead end street is a place to turn around and go into a new direction" - Anonymous
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

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

Re: Request help with http modify response

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

Moonchild wrote:
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.
https://forum.palemoon.org/viewtopic.php?f=3&t=31281&start=20#p258037
tellu-white » 2024-11-21 :
If there are people interested in using my add-on (after testing it), I will post a modified version of it ...
https://forum.palemoon.org/viewtopic.php?f=70&t=31829#p257231
tellu-white » 2024-12-09
I would appreciate any feedback.
https://forum.palemoon.org/viewtopic.php?f=3&t=31281&start=20#p257777

Forum users didn't bother to give me feedback, however, I decided to be patient, maybe ...

After all, you're right, so I will not continue to make useless posts on this topic anymore.

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

Re: Request help with http modify response

Unread post by moonbat » 2024-12-16, 03:18

tellu-white wrote:
2024-12-15, 18:12
Forum users didn't bother to give me feedback
I already mentioned in one of these threads that you could submit it to the addons team for adding on the addons site :coffee:
"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
tellu-white
Fanatic
Fanatic
Posts: 184
Joined: 2022-03-08, 22:02

Re: Request help with http modify response

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

moonbat wrote:
I already mentioned in one of these threads that you could submit it to the addons team for adding on the addons site
I guess you didn't read my previous post carefully, so I'll repeat the messages from that post:
tellu-white wrote:
If there are people interested in using my add-on ...
I would appreciate any feedback.
In one of the first posts I said:
tellu-white wrote:
I made this add-on for personal use. Now I've noticed that there are some difficulties in adding new filters in Modify HTTP Response 1.3.8 add-on so I thought maybe my add-on will be useful for some users.
So my purpose was not to show up on the "addons site" but to lend a helping hand.

***

Most users of Modify HTTP Response 1.3.8 (JustOff) add-on don't write their own filters but copy them from the posts of power users like adoxa. Tracking user interest in my add-on I found that adoxa continued to point to Modify HTTP Response 1.3.8 (JustOff) add-on in all cases where it posted filters subsequent to the time I posted my add-on. None of the users of the filters written by adoxa showed any sign that they were interested in replacing the use of Modify HTTP Response 1.3.8 (JustOff) add-on with my add-on. Even you wrote:
moonbat wrote:
I haven't given your extension a try yet - but ...
https://forum.palemoon.org/viewtopic.php?f=3&t=31281&start=20#p257790

These facts were important in making my decision. Since the users don't find my add-on helpful, I don't see the point in unnecessarily loading "addons site".

User avatar
frostknight
Astronaut
Astronaut
Posts: 572
Joined: 2022-08-10, 02:25

Re: Request help with http modify response

Unread post by frostknight » 2024-12-23, 00:26

tellu-white wrote:
2024-12-16, 13:57
These facts were important in making my decision. Since the users don't find my add-on helpful, I don't see the point in unnecessarily loading "addons site".
I found it useful, also, if people still use modify http response, then they will most likely find yours useful. Especially since yours is adding features constantly.

But that's my two cents.

Anywho, thank you.
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
noellarkin
Fanatic
Fanatic
Posts: 120
Joined: 2021-07-27, 04:20

Re: Request help with http modify response

Unread post by noellarkin » 2025-01-07, 06:59

@tellu-white thanks for releasing this :) was on vacation so I didn't get to check this out (I will in the coming weeks).
Do continue working on this, I think it's great that someone's overhauling JustOff's addons.

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

Re: Request help with http modify response

Unread post by tellu-white » 2025-01-07, 17:01

noellarkin wrote :
@tellu-white thanks for releasing this :) was on vacation so I didn't get to check this out (I will in the coming weeks).
In a previous comment I said that I will not post other versions of this add-on here:

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

However, if you want to test my add-on, you should test its latest version ( 4.3 ).

When I added the option to search with unicode characters, I did not add the option to use unicode characters for URLs too. I did not consider this option until I came across a page that had such a URL:

https://www.csid.ro/dictionar-medical/nefrita-interstitiala-nefropatie-interstiţială-11309008/

Here is another example of a URL containing unicode characters:

https://ko.wikipedia.org/wiki/위키백과:대문

In order to make a filter to target such a page, I needed to introduce the option to use unicode characters in the "path" too. Such a filter would look like this:

Code: Select all

[`/ko.wikipedia.org/`, `/\/wiki\/위키백과:대문/`, [`/우리 모두가 만들어가는 자유 백과사전/g`, `!!! REPLACED !!!`], [`/위키백과/g`, `!!! REPLACED !!!`]]
And this is what the result of using this filter looks like:
01.png
In addition, I added the use of unicode characters to the results of using the "Requests Info" option. Here is what such a result used for the above page looks like:
02.png
03.png
04.png
***

Download link ( Intercept & Modify HTTP Response 4.3 ):

https://www.mediafire.com/file/pz8qw1fw6rm51yx/Intercept_&_Modify_HTTP_Response_4_3.zip/file
You do not have the required permissions to view the files attached to this post.

User avatar
Thad E G
Hobby Astronomer
Hobby Astronomer
Posts: 28
Joined: 2022-10-23, 10:38

Re: Request help with http modify response

Unread post by Thad E G » 2025-05-10, 10:07

I have been trying to avoid asking, because I am certain that this is going to be one of those obvious-everyone-else stupid questions! :oops: ...
Download link ( Intercept & Modify HTTP Response 4.3 ):
https://www.mediafire.com/file/pz8qw1fw ... 3.zip/file
I'm at a loss as to how to install it. If I drag&drop the zip file, which contains three files, to Palemoon, nothing happens. Which doesn't really surprise me. If I drag&drop the contained .xpi into Palemoon, it appears to have installed it, but, even after the restart, there is no "preferences" or ability to access rules editor.

Somebody please tell me what I'm missing!

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

Re: Request help with http modify response

Unread post by back2themoon » 2025-05-10, 10:52

You have to extract the zip, and install the .xpi file. I'd suggest going in the Add-ons Manager (in Pale Moon) and using its "Install Add-on from file" option instead of drag-and-drop. The latter works too, though.

Assuming you have installed it, if I remember correctly you have to bring out its icon. Right-click/Customize on a Toolbar, and you should find the extension icon in there. Drag it somewhere visible, and you will gain access to its options via the icon.

User avatar
Thad E G
Hobby Astronomer
Hobby Astronomer
Posts: 28
Joined: 2022-10-23, 10:38

Re: Request help with http modify response

Unread post by Thad E G » 2025-05-10, 12:53

back2themoon wrote:
2025-05-10, 10:52
Assuming you have installed it, if I remember correctly you have to bring out its icon.
Ha-Ha... Never thought of that! Yes, it should have been obvious, but it's been a long time since I added or changed icons.

Many thanks.

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

Re: Request help with http modify response

Unread post by back2themoon » 2025-05-10, 13:26

I think tellu-white should make that icon visible by default, upon installation. A dedicated topic for the extension would help, but that's been asked and rejected already.

I had to switch back to Modify HTTP Response, because I couldn't find a way to add a rule to my existing ones. This rule was meant for Modify HTTP Response but the Convert Filter Syntax function wasn't helping. I wasn't sure where to post and simply gave up by reverting to the old, original extension which unfortunately remains easier to find.

User avatar
Thad E G
Hobby Astronomer
Hobby Astronomer
Posts: 28
Joined: 2022-10-23, 10:38

Re: Request help with http modify response

Unread post by Thad E G » 2025-05-10, 15:30

It is not simple. I would not even know what I had to alter without advice from someone else, let alone how to alter it. By the time I have been given this information, the kind person would probably be giving me the whole filter.

I'm grateful for the addon, and for additional help along the way.

If @Tellu-White is still counting, please add my small voice to requests to maintain the add-on on the palemoon site. BTW, the extension details display that as the home page.