Velvet Star Monitor

Standout celebrity highlights with iconic style.

general

How to change useragent of default Ubuntu Web browser?

Writer Mia Lopez

If it possible, how to change/substitute of user-agent for default Ubuntu GNOME Web browser?

enter image description here

1 Answer

1-st way (GUI):

  1. Installing dconf Editor:
sudo apt update
sudo apt install dconf-editor -y
  1. Run it:
$ dconf-editor
  1. Go to:
/org/gnome/epiphany/web/user-agent
  1. Switch Use default value to OFF

  2. Insert Your custom user-agent string to Custom value field.

enter image description here

  1. Close dconf Editor.

  2. Chaeck Your user-agent with link:

2-nd way (Command-line):

  1. To set use this command and replace YOUR_CUSTOM_USER_AGENT to your value:
gsettings set org.gnome.Epiphany.web:/org/gnome/epiphany/web/ user-agent 'YOUR_CUSTOM_USER_AGENT'

For Example:

gsettings set org.gnome.Epiphany.web:/org/gnome/epiphany/web/ user-agent 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.121 Safari/537.36'
  1. To check current user-agent value use command:
gsettings get org.gnome.Epiphany.web:/org/gnome/epiphany/web/ user-agent
  1. To revert to the default user-agent:
gsettings reset org.gnome.Epiphany.web:/org/gnome/epiphany/web/ user-agent

Result:

enter image description here

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy