Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Placeholder for the original user agent in user-agent option of manifest file #7782

Open
Wizard13 opened this issue Sep 10, 2021 · 3 comments

Comments

@Wizard13
Copy link

Hi!
user-agent option of manifest file has the following placeholders according to docs: %name, %ver, %nwver, %webkit_ver and %osinfo.
Could we have another placeholder named %user_agent that would hold the original user agent string, so that we could use it to add any extra info?

@panther7
Copy link

panther7 commented Sep 13, 2021

Placeholder is

Mozilla/5.0 (%osinfo) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/93.0.4577.63 Safari/537.36

But, you must rewrite Chrome version manualy.

@Wizard13
Copy link
Author

@panther7 I know i can write it manually, but I would like to avoid having to do that every time there's an update, that's why I'm proposing for this new placeholder.

@bluthen
Copy link
Contributor

bluthen commented Apr 24, 2024

Old but if anyone visits this. See
%chromium_ver

https://docs.nwjs.io/en/latest/References/Manifest%20Format/#user-agent

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants