Page 1 of 1

Modify HTTP Response

Posted: 2020-01-08, 23:59
by GosfordMaltster
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

Re: Modify HTTP Response

Posted: 2020-01-09, 05:51
by therube
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.)

Re: Modify HTTP Response

Posted: 2020-01-09, 05:57
by moonbat
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.

Re: Modify HTTP Response

Posted: 2020-01-09, 06:11
by therube
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

Re: Modify HTTP Response

Posted: 2020-01-09, 14:34
by letmeindude
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.

Re: Modify HTTP Response

Posted: 2020-01-10, 02:30
by moonbat
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.