thorium icon indicating copy to clipboard operation
thorium copied to clipboard

Need a way for Thorium to "pretend" to be a real Chrome

Open Tvangeste opened this issue 1 year ago • 16 comments

Is your feature request related to a problem? Please describe. There are some sites and extensions that insist on being used ONLY with "real" Chrome, and if they detect that a fork of Chrome is used, they refuse to work. I am aware of various Capcha libs doing this, as well as some extensions (1Password, 2FAS).

Essentially, this renders Thorium as less comfortable browser solution that is not properly working in some scenarios.

Describe the solution you'd like, including relevant patches or source A command-line switch to enable Chrome-pretend mode would be enough, I guess.

Additional Info As far as I know, the extensions and libraries use navigator.userAgentData.brands API to detect if the real Chrome is used or not.

The real chrome provides:

[
    {
        "brand": "Chromium",
        "version": "118"
    },
    {
        "brand": "Google Chrome",
        "version": "118"
    },
    {
        "brand": "Not=A?Brand",
        "version": "99"
    }
]

While the Thorium responds with:

[
    {
        "brand": "Chromium",
        "version": "117"
    },
    {
        "brand": "Not;A=Brand",
        "version": "8"
    }
]

Tvangeste avatar Oct 20 '23 17:10 Tvangeste

Yes, if there is a way to disguise it, it will solve a lot of problems

gz83 avatar Oct 20 '23 17:10 gz83

There is a user agent switcher to use: https://add0n.com/useragent-switcher.html.

GrimPixel avatar Oct 20 '23 18:10 GrimPixel

@GrimPixel Thanks for the suggestion, but this won't work when you need to spoof the user agent for other extensions, unfortunately. I double-checked, just in case, and 1Password extension still sees the original navigator.userAgentData.

But your suggestion is useful when we spoofing the agent on actual web sites, not extensions.

Tvangeste avatar Oct 20 '23 19:10 Tvangeste

That should be a great feature!

On thorium, my 1password extension just frequently ask me to re-login or enter password, so damn annoying. But on Chrome, the extension is totally depends on 1password desktop app, won't always ask for re-login.

domeniczz avatar Oct 23 '23 05:10 domeniczz

@domeniczz , exactly my problem that forced me to file this issue: 1Password extension doesn't connect to the 1Password desktop app, since it insists for the browser to be the "official" one.

Tvangeste avatar Oct 23 '23 08:10 Tvangeste

@Tvangeste 1Password has a configuration file that you can change to allow it to work. https://1password.community/discussion/120954/how-the-browser-integration-works

davidsielert avatar Oct 24 '23 01:10 davidsielert

@davidsielert The discussion is for Linux, I explore a little but fail to find out how to do the same thing in Windows. Do you have any advice? Thanks.

domeniczz avatar Oct 24 '23 05:10 domeniczz

@domeniczz I believe the other platforms you need to use the beta build which is supposed to have a new area in setting to manage allowed browsers as 1Password no longer wishes to vet chrome forks.

https://1password.community/discussion/140735/extending-support-for-trusted-web-browsers

davidsielert avatar Oct 24 '23 06:10 davidsielert

@davidsielert that does only seem to work when the App is signed, though… See https://github.com/Alex313031/Thorium-MacOS/issues/27

ffranke avatar Oct 31 '23 10:10 ffranke

So, this issue with Thorium and 1Password is basically killing my use of Thorium, on multiple platforms (Windows and Linux).

I understand that this is not strictly Thorium problem per se, but still, one important use case is not functional with Thorium for me :(

Tvangeste avatar Oct 31 '23 10:10 Tvangeste

The user agent change is net even fixing logging into sites like Twitch. Something other than user agent is being used to deny thorium access to some sites.

lavavex avatar Nov 01 '23 22:11 lavavex

Hi! so I wanted to use 1password in thorium but i cannot make it work.

https://1password.community/discussion/120954/how-the-browser-integration-works I followed this as it has been suggested in the comments of this issue but 1password doesn't seem to recognize thorium either.

I added "thorium-browser" to the list which is the name of the bin but nothing, maybe someone managed to make it work and could give me a tip?

Otherwise hope this issue gets resolved, the work on thorium is excellent but not being able to easily use my password manager is kind of a deal breaker for me :(

Will use it as soon as it is fixed though :smile:

NicolasGB avatar Dec 06 '23 14:12 NicolasGB

+1 on this, it would also potentially close #58 #538

I think maybe adding a flag or just a launch parameter/env var would help a lot without affecting anything else, it should not be a requirement to use a user agent switcher extension and even if that were to be the solution, it still does not help with other extensions themselves.

i1u5 avatar Feb 14 '24 01:02 i1u5

Bumping this for visiblity and consideration, as I believe many are affected.

megalithic avatar May 21 '24 19:05 megalithic

this is also an issue for Kaspersky password manager extension I'm not using thorium just because of this...

cccarv82 avatar May 24 '24 17:05 cccarv82

Any news on this @Alex313031?

megalithic avatar Jul 30 '24 12:07 megalithic