well actualy the information (as far as I now it) isn't pulled from
the useragent only.
the browser holds more information vars.
browser info, installed modules/plugins, system, ect
Firefox doesn't use useragent for identifying your os they use a
java script. (example: http://www.quirksmode.org/js/detect.html)
so changing the useragent is not bulletproof (but most sites uses the useragent method - or turn off javascript completely).
There's and old (Very very usefull program! still figuring him out) proxomitron http://www.proxomitron.info/ it's a usefull http-proxy (used a lot for cookie spoofing)
have a look here: http://browserspy.dk/os.php
Although I understand what you mean you did not explained it correctly, it is not Firefox who tells the website your OS.
Let's see, JavaScript and User-Agent are 2 different ways to recognize the OS and both are completely independent and got nothing to do with the Browser you're using.
Let's start by saying that JS is a CLIENT_SIDE script, which means that no website should grab any information from it, that's just wrong from the website part and can be easily be faked by simply disabling JavaScript or altering the variable, same for cookies.
Leaving us with User-Agent, which has been said is also completely modifiable.
Just a small apart, keep in mind that making yourself pass as a linux when you're in fact using a Windows can give you bad results, simply due to packet fragmentation.
If you've read Nmap book you should have an idea what I'm talking about, I'm not going to go much in detail as it is not that frequent, just saying, it can happen.
but I have a question, your title is Trick OS webscanners, I have to ask, why would you do it?
If the idea is to do a scan to a website and make sure they won't get any information from you, I would be much more worried about IP.
There's also another thing that worries me, but basically because I don't know much about it, which is the possibility of logging in pretty much anywhere with your Facebook and Google account, won't that leave any trace in the website?