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=desga2] If I understand good, in this thread you like add NoScript and AdBlockPlus toolbars buttons to the Privacy Bar toolbar. Is this correct? Privacy bar is in menu: View -> Toolbars -> Privacy Bar By default this extension created a toolbar button size 16x16 or 24x24. Privacy Bar (by default) is a diferent size toolbar button (64x13) and almost this include text in buttons. But you can mixed buttons of diferent size in a toolbar if you set the size in button definition. [url=http://kmeleon.sourceforge.net/wiki/PluginCommands]Here you can found the documentation about next code[/url]. For example to NoScript: Open noscript.kmm file in an text editor, and search this code at the end of file: [code] _NoScript_BuildToolbar{ # Toolbars $Large=(index(readfile(getfolder("SkinFolder")."\\..\\skins.ini"),getpref(STRING,"kmeleon.general.skinsCurrent")."=1")>-1); $Large ? pluginmsg(toolbars,"AddToolbar","NoScript,24,24",""):pluginmsg(toolbars,"AddToolbar","NoScript,16,16",""); $Large ? pluginmsg(toolbars,"AddButton","NoScript,NoScript,macros(NoScript_Toggle),&NoScript,".$_NoScript_Tooltip.",24,24,"."noscript_large.bmp[0],"."noscript_large.bmp[1]"."noscript_large.bmp[2]",""):0; $Large ? 0:pluginmsg(toolbars,"AddButton","NoScript,NoScript,macros(NoScript_Toggle),&NoScript,".$_NoScript_Tooltip.",16,16,"."noscript.bmp[0],"."noscript.bmp[1]"."noscript.bmp[2]",""); } [/code] For privacy bar is better the little button 16x16, change this code to add the button to Privacy bar instead his own toolbar: [code] _NoScript_BuildToolbar{ # Button in Privacy Bar pluginmsg(toolbars,"AddButton","&Privacy Bar,NoScript,macros(NoScript_Toggle),&NoScript,".$_NoScript_Tooltip.",16,16,"."noscript.bmp[0],"."noscript.bmp[1]"."noscript.bmp[2]",""); } [/code] But in KM 1.5.3 exist the [url=http://kmeleon.sourceforge.net/bugs/viewbug.php?bugid=1130]bug # 1130 "pluginmsg AddButton broken"[/url] fixed for the next 1.5.4 version. For AdBLockPlus by default any toolbar button is defined but you can add it to his macro file adblockplus.kmm. [code] _AdBlockPlus_BuildToolbar{ # Button in Privacy Bar pluginmsg(toolbars,"AddButton","&Privacy Bar,AdBlockPlus,adblockplus(Preferences),,"."AdBlockPlus".",16,16,"."adblockplus.bmp[0],"."adblockplus.bmp[1]"."adblockplus.bmp[2]",""); } $OnSetup=$OnSetup."_AdBlockPlus_BuildToolbar;"; [/code] Remember you must create an adblockplus.bmp file with ABP icons and place it in "\K-Meleon\skins\default" folder. Note: adblockplus(Preferences),[Here you can put a menu name for rightclick contextmenu for the button],[/quote]
[Please Enable JavaScript]
K-Meleon forum is powered by
Phorum
.
Home/News
Screenshots
Download
Documentation
Resources
Get Involved
Forum
Bugs
Development