Request help with http modify response
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:
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:
- Clear any current output
- Navigate or refresh the page in question
- Copy and paste Errors or seemingly relevant Warnings into a single [ code ] block.
- tellu-white
- Fanatic
- Posts: 130
- Joined: 2022-03-08, 22:02
Re: Request help with http modify response
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
Download link ( Intercept & Modify HTTP Response 3.1 ):
https://www.mediafire.com/file/36lh01tu1osmx4g/Intercept_&_Modify_HTTP_Response_3_1.zip/file
- tellu-white
- Fanatic
- Posts: 130
- Joined: 2022-03-08, 22:02
Re: Request help with http modify response
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:
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:
Also, to make other changes to those pages we will have to add new "Search-Replace" pairs and NOT new filters.
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 !!!`]]]
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 !!!`]]
- tellu-white
- Fanatic
- Posts: 130
- Joined: 2022-03-08, 22:02
Re: Request help with http modify response
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
https://forum.palemoon.org/viewtopic.php?f=70&t=31829#p257227
- tellu-white
- Fanatic
- Posts: 130
- Joined: 2022-03-08, 22:02
Re: Request help with http modify response
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
Download link ( Intercept & Modify HTTP Response 3.2 ):
https://www.mediafire.com/file/chxjcoatzojrmtf/Intercept_&_Modify_HTTP_Response_3_2.zip/file
Re: Request help with http modify response
Please make a dedicated release topic in 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
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite
- tellu-white
- Fanatic
- Posts: 130
- Joined: 2022-03-08, 22:02
Re: Request help with http modify response
https://forum.palemoon.org/viewtopic.php?f=3&t=31281&start=20#p258037Moonchild 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=70&t=31829#p257231tellu-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=3&t=31281&start=20#p257777tellu-white » 2024-12-09
I would appreciate any feedback.
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.
Re: Request help with http modify response
I already mentioned in one of these threads that you could submit it to the addons team for adding on the addons site
"One hosts to look them up, one DNS to find them and in the darkness BIND them."
KDE Neon on a Slimbook Excalibur (Ryzen 7 8845HS, 64 GB RAM)
AutoPageColor|PermissionsPlus|PMPlayer|Pure URL|RecordRewind|TextFX
KDE Neon on a Slimbook Excalibur (Ryzen 7 8845HS, 64 GB RAM)
AutoPageColor|PermissionsPlus|PMPlayer|Pure URL|RecordRewind|TextFX
- tellu-white
- Fanatic
- Posts: 130
- Joined: 2022-03-08, 22:02
Re: Request help with http modify response
I guess you didn't read my previous post carefully, so I'll repeat the messages from that post: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
In one of the first posts I said:tellu-white wrote:
If there are people interested in using my add-on ...
I would appreciate any feedback.
So my purpose was not to show up on the "addons site" but to lend a helping hand.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.
***
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:
https://forum.palemoon.org/viewtopic.php?f=3&t=31281&start=20#p257790moonbat wrote:
I haven't given your extension a try yet - but ...
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".
- frostknight
- Lunatic
- Posts: 420
- Joined: 2022-08-10, 02:25
Re: Request help with http modify response
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.tellu-white wrote: ↑2024-12-16, 13:57These 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".
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!
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!
- noellarkin
- Fanatic
- Posts: 120
- Joined: 2021-07-27, 04:20
Re: Request help with http modify response
@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.
Do continue working on this, I think it's great that someone's overhauling JustOff's addons.
- tellu-white
- Fanatic
- Posts: 130
- Joined: 2022-03-08, 22:02
Re: Request help with http modify response
In a previous comment I said that I will not post other versions of this add-on here: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).
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 !!!`]]
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:
***
Download link ( Intercept & Modify HTTP Response 4.3 ):
https://www.mediafire.com/file/pz8qw1fw6rm51yx/Intercept_&_Modify_HTTP_Response_4_3.zip/file