Is there any way to do this? I\'m trying to send a GET request to a website, but I want to customize my UserAgent. Is there any way to do this in pure HTML and JavaScript? I
You will never change a user Agent in HTML, html is the message not messenger.
Indeed you can do it with a javascript code, but it's dangerous if you ever deploy it in production.
It's far safer to use an agent switcher:
https://addons.mozilla.org/fr/firefox/addon/user-agent-switcher/
https://chrome.google.com/webstore/detail/user-agent-switcher-for-c/djflhoibgkdhkhhcedjiklpkjnoahfmg