Closed vn971 closed 10 years ago
The empty User-Agent change, If you test it, it won't work.
I had do the same thing ago, if return a empty UA string to Firefox, Firefox it will use original(default) UA, that is, nothing change. So it need to modify Firefox code about this first, let it distinguish null object and empty string object.
It look like you just translate the description, not the files in "locale" folders. Can you help me translate these files? Only a few entries.
I prefer you translate them in
https://www.transifex.com/projects/p/user_agent_overrider/
So everyone feel free to help, and easy to cooperate.
I tried to understand this "transifex" site, but nothing usefull seems to be clickable: https://www.transifex.com/projects/p/user_agent_overrider/language/ru/ at least, nothing happens if I click on "global.dtd", "global.properties".
When you click the "globa.dtd', a dialog will popup, but you have to sign up a account to do any action. On the right side of the dialog, there are a "Translate now" button, then put you into a translating editor.
I found a way how to remove "User-Agent" without any addons. In "about:config" page:
A also made a self-answering question on superuser: http://superuser.com/questions/692530/how-to-remove-user-agent-for-firefox
Yes, this way can do this. But it only work at Firefox 23+, because there are a bug in Firefox 17 - 22, see
https://bugzilla.mozilla.org/show_bug.cgi?id=814379
So, I have make a commit two months ago https://github.com/muzuiget/user_agent_overrider/commit/c790e327c53e6ce075d43e16e0f8abe986b62156
If run at Firefox 17 - 22, keep using the monkey patch dirty-hack way. If run at Firefox 23+, modify that about:config entry, in a nutshell, just a GUI tool for that about:config entry.
But still too lazy to add a UI menuitem for using empty UA, because not any users request this feature.
What's also strange -- the UA is deleted if you enter an empty string into "general.useragent.override". I expected that it would not work, for a similar reason to what it is on this plugin (user_agent_overrider).
from transifex,
The user vn971 requested to join the Russian language translation of the user_agent_overrider project "
Also, I wanted to note that emptying lines in User-Agent-Switcher will remove the User-Agent HTTP header now. That's great, I think. Big thanks for your addon, @muzuiget !
the code for empty UA should be tested (was not tested by me because I don't know how).