Hi all !
Welcome to day 11th of 31 days of Raspberry PI 400
Today was just about going from this:
to this (in Firefox ESR):
In four words: Firefox ESR user agent
I was getting tired that Google showed results in page for a mobile. Frustrating to have small images and small page results when I'm in a desktop computer.
After a bit of google search (even in mobile results), I go to this Firefox troubleshooting information page (3 horizontal small rectangles -> Help -> Troubleshooting Information):
What's in the red rectangle got my attention. Maybe Google is presenting the search results in a mobile fashion because it thinks I'm on a mobile device because of the Linux Arm7l in the User Agent string.
For those who don't know, the user agent is a line of text that tells to the Web Server (of any website you're visiting) the operating system you're on and what browser are you using.
Since web pages are getting more and more complex, this information maybe vital for the website you're visiting to present to you (and how to present to you) the best version of their web site or how you'll interact with them. But can also be used for nefarious reasons.
As you can see, Google uses the user agent to know how to display the search results and everything else. My guess is, if changing the user agent for a desktop one, the search results page will also change.
Let's try it.
I'm going to change
Mozilla/5.0 (X11; Linux armv7l; rv:78.0) Gecko/20100101 Firefox/78.0
to
Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0
The original user agent from my work laptop is:
Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:87.0) Gecko/20100101 Firefox/87.0
but I've decided to keep the same Firefox version.
How to change Firefox user agent
In the address bar, write about:config
You'll be presented with a warning. Read it and accept it.
In the search box, search for general.useragent.override
Firefox will not find any, but will present you with an option to add a new item, with the plus button. Before pressing the button, just choose String.
By pressing the plus button, a new text box appears.
Write the new user agent string and press the check mark button
The new user agent string is set.
Let's try it by search something in Google
By opening the Google search page, it's different. This looks promising
and finally
FINALLY !
and that was it for today for problem solving.
For the rest, the usual - Netflix, Unifi Software, GIMP and some Raspberry PI hacking (others Raspberry PIs, not this one).