Change User Agent String Automatically

Talk about code development, features, specific bugs, enhancements, patches, and similar things.
Forum rules
Please keep everything here strictly on-topic.
This board is meant for Pale Moon source code development related subjects only like code snippets, patches, specific bugs, git, the repositories, etc.

This is not for tech support! Please do not post tech support questions in the "Development" board!
Please make sure not to use this board for support questions. Please post issues with specific websites, extensions, etc. in the relevant boards for those topics.

Please keep things on-topic as this forum will be used for reference for Pale Moon development. Expect topics that aren't relevant as such to be moved or deleted.
van p
Astronaut
Astronaut
Posts: 595
Joined: 2015-11-19, 07:15
Location: Cincinnati, OH, U.S.A.

Change User Agent String Automatically

Unread post by van p » 2019-04-21, 22:41

https://www.ghacks.net/2019/04/21/new-microsoft-edge-may-change-user-agent-automatically/

Since there's so much discussion about this topic on this forum, is there any chance this could be done with Pale Moon and/or Basilisk?
Windows 10 Pro x64 v22H2 8GB i5-4570|Pale Moon v33.0.2 x64

vannilla
Moon Magic practitioner
Moon Magic practitioner
Posts: 2194
Joined: 2018-05-05, 13:29

Re: Change User Agent String Automatically

Unread post by vannilla » 2019-04-21, 23:09

But it's done already. Not like Microsoft, but a similar mechanism has been there since at least 27 (probably earlier, but I didn't keep track.)
And there are extensions too if you want.

User avatar
Nigaikaze
Board Warrior
Board Warrior
Posts: 1322
Joined: 2014-02-02, 22:15
Location: Chicagoland

Re: Change User Agent String Automatically

Unread post by Nigaikaze » 2019-04-21, 23:37

van p wrote:
2019-04-21, 22:41
is there any chance this could be done with Pale Moon and/or Basilisk?
It has been under consideration. See UXP issue #380 for further details.
Nichi nichi kore ko jitsu = Every day is a good day.

New Tobin Paradigm

Re: Change User Agent String Automatically

Unread post by New Tobin Paradigm » 2019-04-21, 23:40

If that is used or a different implementation.. It would be a scheduled update of a list not a phone home ping for every site you visit. Cause that is beyond fucking ridiculous.

User avatar
gepus
Keeps coming back
Keeps coming back
Posts: 943
Joined: 2017-12-14, 12:59

Re: Change User Agent String Automatically

Unread post by gepus » 2019-04-22, 07:58

Misleading:
The new Microsoft Edge web browser is based on Chromium, the same core that Google Chrome uses. It may identify as Chromium because of that and that should give it the same level of compatibility with websites and applications as Google Chrome.
There is no way the UserAgent can improve compatibility with websites and applications.

Only thing it can do is to overcome discriminatory Apartheid tactics (aka Browser Sniffing) used by some content providers like Google and Microsoft.

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

Re: Change User Agent String Automatically

Unread post by Moonchild » 2019-04-22, 14:53

gepus wrote:
2019-04-22, 07:58
There is no way the UserAgent can improve compatibility with websites and applications.
We have 10 years of experience with the opposite, because webmaster don't listen and don't make changes. Neither will framework authors. They will continue using UA sniffing which means to be compatible you have to present them with what they expect.
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"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
gepus
Keeps coming back
Keeps coming back
Posts: 943
Joined: 2017-12-14, 12:59

Re: Change User Agent String Automatically

Unread post by gepus » 2019-04-22, 17:04

As a former Opera Presto user I have 20 years of experience with UA sniffing.
For me compatibility means code served by the remote server which the browser can or can't deal with.
If a faked UA (because of discriminatory behavior) means browser compatibility for you - be it.

vannilla
Moon Magic practitioner
Moon Magic practitioner
Posts: 2194
Joined: 2018-05-05, 13:29

Re: Change User Agent String Automatically

Unread post by vannilla » 2019-04-22, 17:53

gepus wrote:
2019-04-22, 17:04
As a former Opera Presto user I have 20 years of experience with UA sniffing.
For me compatibility means code served by the remote server which the browser can or can't deal with.
If a faked UA (because of discriminatory behavior) means browser compatibility for you - be it.
The thing is, Pale Moon can actually deal with 90% (or more) of the code out there, and for that 10% (or less) that it can't, usually frameworks have polyfills available despite the UA sniffing.
The features that require a change in the core are a very small percentage, and it's unclear how much they are used in the wild, if at all.
Maybe 20 years ago it wasn't the case, but it is now.
So faking the UA can improve compatibility in 2019.

User avatar
gepus
Keeps coming back
Keeps coming back
Posts: 943
Joined: 2017-12-14, 12:59

Re: Change User Agent String Automatically

Unread post by gepus » 2019-04-22, 20:11

vannilla wrote:
2019-04-22, 17:53
Maybe 20 years ago it wasn't the case, but it is now.
So faking the UA can improve compatibility in 2019.
It was the same story as it is in 2019.
We had SSUAO as we have today. An SSUAO wasn't considered to be a compatibility fix since the browser was compatible with the site and was only blocked on purpose.
A compatibility issue was only if the browser couldn't deal with the code of the remote server, regardless of the UA. It happened rarely but it happened as it can happen in 2019 as well. Wonder then how such a situation is called nowadays, 20 years later? :)

New Tobin Paradigm

Re: Change User Agent String Automatically

Unread post by New Tobin Paradigm » 2019-04-22, 20:36

I see what you are doing here. Stop it. Just.. stop.