Wouldn't make much sense, the new collection would end up being just as vast as the complete Style Buttons macro, just one big unsorted heap...
I think everyone can simply take it as a template, just copy and fill it with some other short CSS stuff....
Repair links with wrong beginning! Sometimes there are links that have their first character cropped, so the browser can't open it and shows an error. After a while it gets bothersome to always repair that manually *grmpf*
The last line "&OpenURL_InNew" can be changed how you like it, e.g. ..._InBg for background.
My biggest kmm has 45kB so far, over 800 lines, so guess no need to worry 
Quote
siria
Uhm, a second in one day *blush*![]()
Some day I hope to update my useragent2-macro, but for now just as mini-macro:
Edit custom user agents list, via a new entry in the UserAgents menu.
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.
You must first create this list: Go to K-Meleon/defaults/pref/I10n.js, 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.
IMPORTANT:
Check the counter numbers! 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
#-----
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);
#-----
Quote
siria
The explanation is in the first posting, ndebord![]()
It gives the structure into which the various mini-macros can be copied, like books into a book shelf. Basically the one thing they use all in common, is the buildmenu-collection at the bottom, in there all the setmenu-lines should be copied. If not, the mini-macros still work but have no menu entry, so could only be used for toolbar buttons, shortcuts or mouse gestures ;-)
By the way the name for a kmm-file doesn't matter in the least for the function. All that matters are the macro commands inside it that have the "{" right after them.
Taking the above as example, the command (or startup command ;-) for buttons/shortcuts/gestures would simply be "macros(minimacros_EditUserAgents)"
Those blue lines in your quote could really just be copied into a new text file, saved as is (without any additions) under anyname.kmm in a macros folder and could be used for buttons etc. - just wouldn't show up in any menu.
But usually one wants also menu entries, and that's the job of the buildmenu-macro, at the very bottom of nearly all kmm-files. Only that one needs to be called automatically at startup of the browser, which is done with that "OnInit"-line![]()
I remember I was rather confused too in the beginning, until I realized that a kmm-file is called a "macro", but also the single commands (menu entries) in it are "macros"!