Extensions
: K-Meleon Forum
All about K-Meleon extensions.
Goto:
Forum List
•
Message List
•
Search
•
Log In
Your Name:
Subject:
Help information
BBcode help
Smileys help
[quote=ndebord] [quote=siria] Uhm, a second in one day *blush* :P Some day I hope to update my useragent2-macro, but for now just as mini-macro: [b][color=red]Edit custom user agents list, via a new entry in the UserAgents menu.[/color][/b] Clicking it opens the text file with the listing. And this list will not be lost anymore, it will appear in new profiles and also after overwriting KM with a newer version. Just for completely new installs, please remember to copy over this file. [b]You must first create this list[/b]: Go to [b]K-Meleon/defaults/pref/I10n.js[/b], make a copy of it, name it "I10n_useragentsmore.js", open it with notepad and delete all other stuff. Then modify the UAs into your additional useragents, and add more if you like. [b]IMPORTANT: [/b] [b]Check the counter numbers![/b] Make sure they have no 'holes' (1,2,5,...), 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. UA examples and links: http://kmeleon.sourceforge.net/forum/read.php?4,104347 [color=blue] #----- minimacros_EditUserAgents{ macroinfo"Edit custom user agents list '\defaults\pref\I10n_useragentsmore.js' To first create it, copy example from I10n.js (notepad)"; $mini_UAcustomprefs=getfolder(RootFolder)."\\defaults\\pref\\I10n_useragentsmore.js"; $ext="txt"; &getExtensionHandler; exec(sub("%1",$mini_UAcustomprefs,$cmdline)); }[/color] [color=green]# in User Agent menu: [b]setmenu[/b]("&User Agent",macro,"CUSTOM edit entries", minimacros_EditUserAgents,-1);[/color] [color=blue]#----- [/color][/quote] Siria, Don't quite get this... I10n_useragentsmore.js The above file contains your list of user agent strings, no? The mini macro is this? ----------- minimacros_EditUserAgents{ macroinfo"Edit custom user agents list '\defaults\pref\I10n_useragentsmore.js' To first create it, copy example from I10n.js (notepad)"; $mini_UAcustomprefs=getfolder(RootFolder)."\\defaults\\pref\\I10n_useragentsmore.js"; $ext="txt"; &getExtensionHandler; exec(sub("%1",$mini_UAcustomprefs,$cmdline)); } # in User Agent menu: setmenu("&User Agent",macro,"CUSTOM edit entries", minimacros_EditUserAgents,-1); ----------- The above is a KMM file??? IF so, then what do you call it? And how is it started up? Tks.[/quote]
[Please Enable JavaScript]
K-Meleon forum is powered by
Phorum
.
Home/News
Screenshots
Download
Documentation
Resources
Get Involved
Forum
Bugs
Development