General :  K-Meleon Web Browser Forum
General discussion about K-Meleon 
Auto Switcher
Posted by: caktus
Date: May 05, 2010 03:53PM

What does the badlist in Auto Switcher do?:s

Also, I have tried adding the below User Agents saving them as all files in prefs.js, userjs as well as useragent.kmm in the macro folder and restarting both the browser as well as the Loader.exe, but the User Agent's do not appear in Tools > User Agent.

/*----custom User Agents----*/

user_pref("kmeleon.privacy.useragent3.name", "IE6/win|NT5");
user_pref("kmeleon.privacy.useragent3.string", "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; SPINWAY.COM; .NET CLR 1.1.4322; .NET CLR 2.0.50727)");
user_pref("kmeleon.privacy.useragent4.name", "IE7/win|NT6");
user_pref("kmeleon.privacy.useragent4.string", "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; Trident/4.0; GTB5; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648)");
user_pref("kmeleon.privacy.useragent5.name", "KM/Knoppix");
user_pref("kmeleon.privacy.useragent5.string", "Mozilla/5.0 (X11; U; Knoppix 6.0.1-release i386; en-US; rv:1.8.1.18) Gecko/20081029 K-Meleon/1.5.1");
user_pref("kmeleon.privacy.useragent6.name", "IE5/MACOS9");
user_pref("kmeleon.privacy.useragent6.string", "Mozilla/4.0 (compatible; MSIE 5.17; Mac_PowerPC)");
user_pref("kmeleon.privacy.useragent7.name", "WK/MACOSX");
user_pref("kmeleon.privacy.useragent7.string", "Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_6; en-US) AppleWebKit/525.27.1 (KHTML, like Gecko) Version/3.2.1 Safari/525.27.1");


I am using KM 1.5.4.

Thank you,

Charlie

~~If it ain't broke, why screw it up?~~




Edited 2 time(s). Last edit at 05/05/2010 04:48PM by caktus.

Options: ReplyQuote
Re: Auto Switcher
Posted by: siria
Date: May 05, 2010 07:03PM

Hmm... they should work from prefs.js in your profile, if you still have the first two in the default file K-Meleon\defaults\pref/I10n.js, because the numbering must have no holes.
Are you sure they are still in prefs.js?? Perhaps you added it while the browser was open and it was deleted again or such.... Altough I sometimes have the impression that it works also with open browser...
You can type about:config and filter 'agent', then you should see them there??

Options: ReplyQuote
Re: Auto Switcher
Posted by: guenter
Date: May 05, 2010 08:21PM

1.) badlist.txt is a list with sites where K-Meleon's autoswitcher needs to change UserAgentString to Firefox.

Syntax: badsite.com;nextbad.org;lastbadsite.net

Site Semicolon site simicolon.... lastsite

Autowitcher evaluates the strings of this list. Any that matches or includes the pattern string is used e.g. yahoo.com would match yahoo.com, uk/yahoo.com and fr/yahoo.com.

2.) Absolut like siria says.

Browser list with Your syntax goes into user.js or prefs.js when browser is shut down. But I did not yet try whether it is the same for autoswitcher.


AFAIK this list can be saved with slightly altered syntax and copied as moreagents.js to:

./K-Meleon/defaults/pref or edited/catenated to ./K-Meleon/defaults/pref/I10n.js section Privacy's browser list.

Just cut the user_ out.


/*----custom User Agents----*/

pref("kmeleon.privacy.useragent3.name", "IE6/win|NT5");
pref("kmeleon.privacy.useragent3.string", "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; SPINWAY.COM; .NET CLR 1.1.4322; .NET CLR 2.0.50727)");
pref("kmeleon.privacy.useragent4.name", "IE7/win|NT6");
pref("kmeleon.privacy.useragent4.string", "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; Trident/4.0; GTB5; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648)");
pref("kmeleon.privacy.useragent5.name", "KM/Knoppix");
pref("kmeleon.privacy.useragent5.string", "Mozilla/5.0 (X11; U; Knoppix 6.0.1-release i386; en-US; rv:1.8.1.18) Gecko/20081029 K-Meleon/1.5.1");
pref("kmeleon.privacy.useragent6.name", "IE5/MACOS9");
pref("kmeleon.privacy.useragent6.string", "Mozilla/4.0 (compatible; MSIE 5.17; Mac_PowerPC)");
pref("kmeleon.privacy.useragent7.name", "WK/MACOSX");
pref("kmeleon.privacy.useragent7.string", "Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_6; en-US) AppleWebKit/525.27.1 (KHTML, like Gecko) Version/3.2.1 Safari/525.27.1");



Edited 1 time(s). Last edit at 05/05/2010 08:27PM by guenter.

Options: ReplyQuote
Re: Auto Switcher
Posted by: caktus
Date: May 11, 2010 04:39PM

Thanks Guys. Still couldn't get it right so I just started 1.5.4 over from scratch. Appearantly something was corrupted but all is working fine now.smiling smiley

Charlie

~~If it ain't broke, why screw it up?~~


Options: ReplyQuote


K-Meleon forum is powered by Phorum.