Modify HTTP Response

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

Moderators: FranklinDM, Lootyhoof

GosfordMaltster

Modify HTTP Response

Unread post by GosfordMaltster » 2020-01-08, 23:59

Modify HTTP Response - GitHub
Modify HTTP Response - addons.palemoon.org

seems to conflict with :

Pure URL for Pale Moon - GitHub
Pure URL for Pale Moon - addons.palemoon.org

can they be combined?

could you give real-world use-cases?

could one rewrite an imdb.com name page such as:

https://www.imdb.com/name/nm0005222/

with links like:

https://www.imdb.com/title/tt8579674/?p ... =nm9419368

rewritten to::

https://www.imdb.com/title/tt8579674/reference

thus removing referer tracking fields and making the title page the combined/reference view
Last edited by FranklinDM on 2020-01-10, 07:44, edited 1 time in total.
Reason: Fix incorrect link to Pure URL for Pale Moon

User avatar
therube
Board Warrior
Board Warrior
Posts: 1651
Joined: 2018-06-08, 17:02

Re: Modify HTTP Response

Unread post by therube » 2020-01-09, 05:51

Are you logged in to IMDB?
Cause I see some "tracking info", but nothing along the lines you show.

Code: Select all

https://www.imdb.com/title/tt8579674/?ref_=nm_flmg_prd_2
I use a bookmarklet, on a per case as needed basis, Bookmarklet to remove text after ? (See barbaz's answer.)

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

Re: Modify HTTP Response

Unread post by moonbat » 2020-01-09, 05:57

Just add ref@imdb.com or whatever else to the list of parameters to be removed in Pure URL's settings. The @imdb.com ensures that it will be removed only from links to that site, else you can add just 'ref' (not advisable, from personal experience) to remove it from any URL that has it.
"One hosts to look them up, one DNS to find them and in the darkness BIND them."

Image
Linux Mint 21 Xfce x64 on HP i5-5200 laptop, 12 GB RAM.
AutoPageColor|PermissionsPlus|PMPlayer|Pure URL|RecordRewind|TextFX

User avatar
therube
Board Warrior
Board Warrior
Posts: 1651
Joined: 2018-06-08, 17:02

Re: Modify HTTP Response

Unread post by therube » 2020-01-09, 06:11

I am NOT understanding the wanted syntax in Modify HTTP Response, so my attempt is NOT correct.
Anyhow:

Code: Select all

user_pref("extensions.modhresponse.filter", "[[\"imdb.com\",[\"path\",[\"\\\\?.*\",\"\"]]]]");


(Your "Pure URL for Pale Moon - addons.palemoon.org" link is wrong.)

In Pure URL, simply appending ", ?" to the Garbage field list works for IMDB, but that would be by far too overly broad.
(No that is wrong. [See below, which is what actually is doing it.])


Heh. Actually, Pure URL already comes, by default, with a fix for IMDB (much like mooonbat stated).

Code: Select all

ref_@imdb.com

letmeindude

Re: Modify HTTP Response

Unread post by letmeindude » 2020-01-09, 14:34

The easiest way is if you have an IMDb account. Just login and go to https://www.imdb.com/preferences/general and check "Show reference view". For referrer tracking use Pure URL.

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

Re: Modify HTTP Response

Unread post by moonbat » 2020-01-10, 02:30

therube wrote:
2020-01-09, 06:11
In Pure URL, simply appending ", ?" to the Garbage field list works for IMDB, but that would be by far too overly broad.
(No that is wrong. [See below, which is what actually is doing it.])
That will end up removing all parameters passed to all sites in GET requests, breaking everything starting with search engine queries. That's why Pure URL lets you create domain specific garbage fields.
"One hosts to look them up, one DNS to find them and in the darkness BIND them."

Image
Linux Mint 21 Xfce x64 on HP i5-5200 laptop, 12 GB RAM.
AutoPageColor|PermissionsPlus|PMPlayer|Pure URL|RecordRewind|TextFX

Locked