K-Meleon
 

Home/News
Screenshots
Download
Documentation
Resources
Get Involved
Forum
Bugs
Development

SourceForge Logo
Spam Chongqed

 

 

 

 

 

 

K-Meleon

Documentation - Macros and Macro Scripting - View Installed Plugins

Introduction

This document explains how to create a macro that will allow you to view the plugins currently installed and recognized by K-Meleon.

Defining the Macro

You can add macros directly in K-Meleon. Select Edit - Preferences - Configs and then select the tab labeled "Macros". Scroll to the bottom of the file and add the following code:

plugins {
menu = About Plugins
open(about:plugins)
}
This code creates a menu item, "About Plugins". It also defines the macro that will execute the "about:plugins" command when you select that menu item. The command about:plugins allows you to view the plugins currently installed and recognized by K-Meleon.

Click on the "OK" button to save your changes. A dialog will appear asking you if you wish to save your changes to "macros.cfg". Select "Yes" to save the changes. Now that we've defined the macro, we need to have a way to execute it.

Adding a Menu Entry for the Macro

When creating macros, you have the option of binding the macro to a toolbar button, accelerator keys, creating a menu entry or all three. In this example, we'll just create a menu entry for our macro. Again, select Edit - Preferences - Configs and then select the tab labeled "Menus". We'll be adding our macro to the "Help" menu. You can actually add it to any menu you wish or create a whole new menu for your macro. It's your choice!

Under the "&Help" entry, add the following code somewhere in the list of menu entries:

macros(plugins)

Just like this:

&Help {
K-Meleon Homepage = ID_LINK_KMELEON_HOME
K-Meleon Forums = ID_LINK_KMELEON_FORUM
-
About K-Meleon... = ID_APP_ABOUT
macros(plugins)
}
This adds a menu entry to your Help menu titled "About Plugins". When you select "Help", this entry will appear in the menu. When you select the entry, you will be able to view the plugins currently installed and recognized by K-Meleon.

Click on the "OK" button to save your changes. A dialog will appear asking you if you wish to save your changes to "menus.cfg". Select "Yes" to save the changes.

Exit K-Meleon and restart the browser (if you have the symbiotic loader installed, you may have to re-boot). Select the Help menu and you should see your new entry in the list of menu items. When you need to view the installed plugins, select the item from the list.

Troubleshooting

If you can not get the macro to work, make sure that you have K-Meleon's "Macro Extension Plugin" enabled. You can check that under Edit - Preferences - Plugins.

Coding and text by Andres Aule with additional text by Andrew Mutch and Po.

Last updated: January 5, 2002
Created: January 5, 2002

(c) 2000-2001 kmeleon.org. All rights reserved.
design by splif.