ephemeral icon indicating copy to clipboard operation
ephemeral copied to clipboard

Enable spoofing of user agent header

Open LynuxDevz opened this issue 6 years ago • 10 comments

The app is great! I really would like to come back to a more lightweight, private WebKitGTK based browser instead of the resource-heavy firefox, however, one biggest drawbacks for me is the lacking of spoofing the user agent header, as that would make fingerprinting easier.

Artem Anufrij seems to have accomplished spoofing the user agent header in WebKit, potentially enabling the use of WhatsappWeb on Webpin (Issue)

LynuxDevz avatar Jan 11 '19 17:01 LynuxDevz

@LynuxDevz would you expect the app to always spoof a specific user agent, or for it to be configurable in some way?

cassidyjames avatar Jan 11 '19 18:01 cassidyjames

Sorry for typo and the late response, I do believe the app should play on the safe side and spoof to Chrome in W10, (as now, the most used desktop/browser combination), however, it would be nice as well to customize the UA via dconf.

LynuxDevz avatar Jan 16 '19 19:01 LynuxDevz

@LynuxDevz I'm not in favor of spoofing an entirely different platform due to the weirdness that can cause when sites assume you're on Windows and offer different downloads or behave differently—it seems like that would be unpredictable and unexpected behavior from a user's perspective.

cassidyjames avatar Jan 16 '19 19:01 cassidyjames

I might approach this like I approached search engines; a couple of sane default options and then a "custom" free entry option.

cassidyjames avatar Jul 10 '19 21:07 cassidyjames

@cassidyjames can we implement a custom option with certain set of options to choose from using a dropdown ? That will allow users to check choose whatever works best on a per site basis. This would be really helpful feature because some sites like Instagram disable features unless opened on mobile. In case of Instagram direct messages is possible on mobile but not on desktop. Could help out in implementing this if you are interested :)

sidevesh avatar Jan 28 '20 18:01 sidevesh

The risk I see with remembered per-site settings is that it goes against the ephemeral nature and would require storing data about sites visited. It would certainly be technically possible, but I think I would prefer a global setting that is easily changeable on the fly, like the search engine. Design wise I'll probably just model it directly off the search engine UI and back-end where there is a default setting, a couple of common defaults, and a “Custom…” entry with a dialog.

cassidyjames avatar Jan 28 '20 19:01 cassidyjames

@cassidyjames sorry there, by per site I actually meant per web app created using webpin. In the menu shown when creating a new web app, along with name, color etc we can also allow user to choose the user agent from a drop down (or even a simple load as mobile site option will do).

sidevesh avatar Jan 28 '20 21:01 sidevesh

@SiDevesh this app/repo has nothing to do with WebPin...

cassidyjames avatar Jan 28 '20 21:01 cassidyjames

oops, really sorry, added this by mistake here.

sidevesh avatar Jan 28 '20 21:01 sidevesh

Funny conversation :smile: but at the beginning I thought @SiDevesh meant to have kind of "custom presets" that he can use on sites he often visits and needs different UA to use them. That would basically just require the ability to save the custom UAs as another menu option or something like that.

PS: Whatsapp stopped working in Webpin, but it was fixed directly in WebKitGTK using a quirk, see https://github.com/artemanufrij/webpin/issues/9#issuecomment-590094723

janxkoci avatar Mar 06 '20 22:03 janxkoci