It's so easy (if one knows how to :cool
, sorry you had so much trouble ;-)
The list is stored in the file
K-Meleon/defaults/pref/I10n.js
Since changes there get overwritten from new installations, one day I simply tried if it might work to put additional ones in a separate file, and bingo - it does
Just create a new text file, name it any way you like but with ending .js and put it in that same folder (mine is I10n_useragentsmore.js). Put as many agents in there as you like and restart the browser, that's all. Those prefs will automatically be used for new profiles as well. And even after updating to new KM versions, they will still be there
Choose some nice strings from e.g.
http://whatsmyuseragent.com/CommonUserAgents.asp or very detailed here
http://useragentstring.com/pages/useragentstring.php
Just for example my collections over time, but in no way representative
/*****************************************************************/
pref("kmeleon.privacy.useragent3.name", "Opera 9.23 - XP - EN");
pref("kmeleon.privacy.useragent3.string", "Opera/9.23 (Windows NT 5.1; U; en)");
pref("kmeleon.privacy.useragent4.name", "MSIE 7.0 - XP");
pref("kmeleon.privacy.useragent4.string", "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1)");
pref("kmeleon.privacy.useragent5.name", "Firefox 3.5.5 - XP - US - 1.9.1.5");
pref("kmeleon.privacy.useragent5.string", "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.5) Gecko/20091102 Firefox/3.5.5");
pref("kmeleon.privacy.useragent6.name", "Opera10 - Linux - US - Presto 2.2 - KM1.6");
pref("kmeleon.privacy.useragent6.string", "Opera/10.00 (X11; Linux i686; U; en-US) Presto/2.2.0 K-Meleon/1.6");
pref("kmeleon.privacy.useragent7.name", "ORI: KM 160 - win98 - US - Gecko 1919pre");
pref("kmeleon.privacy.useragent7.string", "Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.9.1.9pre) Gecko K-Meleon/1.6.0");
/***************************************************************/
IMPORTANT:
Check the counter numbers! Make sure they have no 'holes', or the rest of the entries will not show up anymore in the menu. On the other hand if some are double, e.g. 1-4 in the default I10n.js, and 2-8 in this extra sheet, than the duplicates seem to be ignored, but fortunately don't seem to cause major errors.
Edited 3 time(s). Last edit at 03/14/2010 07:50AM by siria.