muzuiget / user_agent_overrider

Firefox extension to override browser user agent string
https://addons.mozilla.org/firefox/addon/user-agent-overrider/
61 stars 19 forks source link

russian localization, attempt to allow empty UA #1

Closed vn971 closed 10 years ago

vn971 commented 11 years ago

the code for empty UA should be tested (was not tested by me because I don't know how).

muzuiget commented 11 years ago

The empty User-Agent change, If you test it, it won't work.

  1. for commit https://github.com/vn971/user_agent_overrider/commit/b40bb2a4eb67fc6726607edf6164b9bf672acd8b

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.

  1. for https://github.com/vn971/user_agent_overrider/commit/e118219ad7b2bca8ead87eb751d52cf933eba930

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.

vn971 commented 11 years ago

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".

muzuiget commented 11 years ago

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.

vn971 commented 10 years ago

I found a way how to remove "User-Agent" without any addons. In "about:config" page:

vn971 commented 10 years ago

A also made a self-answering question on superuser: http://superuser.com/questions/692530/how-to-remove-user-agent-for-firefox

muzuiget commented 10 years ago

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.

vn971 commented 10 years ago

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).

vn971 commented 10 years ago

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 !