Bugs
: K-Meleon Web Browser Forum
You can talk about issues with k-meleon here.
Go to:
Forum List
•
Message List
•
Search
•
Log In
Your Name:
Subject:
Help information
BBcode help
Smileys help
Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
[Please, enable JavaScript to see the code]
Enter code:
[quote=CaptnBlack] I modified the existing useragent macros so that it sets all three useragent prefs at once. I also modified the custom UA macros so that you can set all three prefs individually. I removed the "Reset to default on exit" pref. If none of the UA optins are checked you know you've set a custom UA. You can alter the UAs in the user_prefs to fit your needs, or leave them as they are. If you do alter them, you might have to alter the menus.cfg to match them if needed. In prefs.js add/replace: user_pref("kmeleon.privacy.useragent0.name", "K-Meleon"); user_pref("kmeleon.privacy.useragent0.string", ""); user_pref("kmeleon.privacy.useragent1.name", "MSIE 6.0"); user_pref("kmeleon.privacy.useragent1.string", "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)"); user_pref("kmeleon.privacy.useragent2.name", "Netscape 4.8"); user_pref("kmeleon.privacy.useragent2.string", "Mozilla/4.8 [en] (Windows NT 5.1; U)"); user_pref("kmeleon.privacy.useragent3.name", "Opera 7.54"); user_pref("kmeleon.privacy.useragent3.string", "Opera/7.54 (Windows NT 5.1; U) [en]"); user_pref("kmeleon.privacy.useragent4.name", "Firefox 1.5"); user_pref("kmeleon.privacy.useragent4.string", "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8) Gecko/20051124 Firefox/1.5"); In macros.cfg add/replace: #------------User Agent Override----------------# $ua="general.useragent.override"; $uas=""; $pu="kmeleon.privacy.useragent"; $ps=".string"; $uar="kmeleon.privacyUA.noReset"; $uaven="general.useragent.vendor"; $uav=""; $uasven="general.useragent.vendorSub"; $uasv=""; UA0{ $uas=getpref(STRING,$pu."0".$ps); &SetUA; setpref(STRING,$uaven,"K-Meleon"); setpref(STRING,$uasven,"0.9"); } UA1{ $uas=getpref(STRING,$pu."1".$ps); &SetUA; setpref(STRING,$uaven,"MSIE"); setpref(STRING,$uasven,"6.0"); } UA2{ $uas=getpref(STRING,$pu."2".$ps); &SetUA; setpref(STRING,$uaven,"Netscape 4.8"); setpref(STRING,$uasven,"4.8"); } UA3{ $uas=getpref(STRING,$pu."3".$ps); &SetUA; setpref(STRING,$uaven,"Opera"); setpref(STRING,$uasven,"7.54"); } UA4{ $uas=getpref(STRING,$pu."4".$ps); &SetUA; setpref(STRING,$uaven,"Firefox"); setpref(STRING,$uasven,"1.5"); } UACust{ $uas=getpref(STRING,$ua); $uas=prompt("Enter the User Agent string to identify K-Meleon as:","Custom User Agent",$uas); $uas==""?"":&SetUA; &UACustV; } UACustV{ $uav=getpref(STRING,$uaven); $uav=prompt("Enter Vendor string:","Custom Vendor",$uav); $uav==""?"":&SetVen; &UACustSV; } UACustSV{ $uasv=getpref(STRING,$uasven); $uasv=prompt("Enter VendorSub string:","Custom VendorSub",$uasv); $uasv==""?"":&SetSVen; } SetUA{ setpref(STRING,$ua,$uas); &Sync; } SetVen{ setpref(STRING,$uaven, $uav); } SetSVen{ setpref(STRING,$uasven, $uasv); } In # ----BUTTON & MENU SYNC---- add/replace: setcheck("macros(UA0)",getpref(STRING,$pu."0".$ps)==getpref(STRING,$ua)? true:false); setcheck("macros(UA1)",getpref(STRING,$pu."1".$ps)==getpref(STRING,$ua)? true:false); setcheck("macros(UA2)",getpref(STRING,$pu."2".$ps)==getpref(STRING,$ua)? true:false); setcheck("macros(UA3)",getpref(STRING,$pu."3".$ps)==getpref(STRING,$ua)? true:false); setcheck("macros(UA4)",getpref(STRING,$pu."4".$ps)==getpref(STRING,$ua)? true:false); In menus.cfg: User Agent{ macros(UA0, K-Meleon (Default)) macros(UA1, Internet Explorer 6 (XP)) macros(UA2, Netscape 4.8 (XP)) macros(UA3, Opera 7.54 (XP)) macros(UA4, Firefox 1.5 (XP)) macros(UACust, Custom...) }[/quote]
[Please Enable JavaScript]
K-Meleon forum is powered by
Phorum
.
Home/News
Screenshots
Download
Documentation
Resources
Get Involved
Forum
FAQ
English