MACROS Plugin, some useful macros |
Function |
Available in Accel, Macros, Menus, Toolbars |
macros(MACRO_NAME) |
Generic syntax to call a macro. |
Macro defined in file: |
macros(Accel_Mouse([option])) |
Apply the specified mouse accelerator configuration. Options:
empty => K-Meleon defaults
"Firefox 2.0"
"SeaMonkey 1.1"
"Opera 9.2" |
Macro defined in file: accel.kmm |
macros(cfg_FileNotFound) |
Show a warning of a file not found. |
Macro defined in file: cfg.kmm |
macros(cfg_ProfileDir) |
Open the profile directory. |
Macro defined in file: cfg.kmm |
macros(cfg_SettingsDir) |
Open the settings directory. |
Macro defined in file: cfg.kmm |
macros(cfg_Macros) |
Open the default macros directory. |
Macro defined in file: cfg.kmm |
macros(cfg_UserMacros) |
Open the user macros directory. |
Macro defined in file: cfg.kmm |
macros(cfg_Commands) |
View a list of commands available for menus, macros and toolbars. |
Macro defined in file: cfg.kmm |
macros(cfg_Skin) |
Edit a skin configuration file. |
Macro defined in file: cfg.kmm |
macros(cfg_Settings) |
Edit a configuration file. |
Macro defined in file: cfg.kmm |
macros(cfg_UserPrefs) |
Edit a preferences file. |
Macro defined in file: cfg.kmm |
macros(cfg_UserStyle) |
Edit a user style sheet. |
Macro defined in file: cfg.kmm |
MIGRATION COMPATIBILITY (only one execution is needed) |
This macro is used to migrate K-Meleon profiles from versions 1.0 to 1.1 and from 1.1 to 1.5.
It support the compatibility to Preferences, Groups/Sessions and Layer/Tabs. |
Macro defined in file: compat.kmm |
macros(Console2) |
Open the enhanced error console. |
Macro defined in file: console2.kmm |
macros(DocInfo_Image) |
View image properties. |
Macro defined in file: docinfo.kmm |
macros(DocInfo_Link) |
View link properties. |
Macro defined in file: docinfo.kmm |
macros(DocInfo_Page_Links) |
View all links in the current page. |
Macro defined in file: docinfo.kmm |
macros(DocInfo_Frame_Links) |
View all links in the current frame. |
Macro defined in file: docinfo.kmm |
macros(DocInfo_Page_LinkedImages) |
View all images linked by the current page. |
Macro defined in file: docinfo.kmm |
macros(DocInfo_Frame_LinkedImages) |
View all images linked by the current frame. |
Macro defined in file: docinfo.kmm |
macros(DocInfo_Page_Images) |
View all images in the current page. |
Macro defined in file: docinfo.kmm |
macros(DocInfo_Frame_Images) |
View all images in the current frame. |
Macro defined in file: docinfo.kmm |
macros(domComplete(0)) |
Complete the domain of URL bar text and go it. www.<URL>.com |
Macro defined in file: domcomplete.kmm |
macros(domComplete(1)) |
Complete the domain of URL bar text and go it. www.<URL>.net |
Macro defined in file: domcomplete.kmm |
macros(domComplete(2)) |
Complete the domain of URL bar text and go it. www.<URL>.org |
Macro defined in file: domcomplete.kmm |
macros(Encoding_AutoDetect([CHARSET])) |
Apply the specified character set autodetection method.
For CHARSET look in macro file. |
Macro defined in file: encoding.kmm |
macros(Encoding_ForceCharset([CHARSET])) |
Force the specified character set encoding.
For CHARSET look in macro file. |
Macro defined in file: encoding.kmm |
macros(hotlink(N)) => N=[0-9] |
Open the specified hotlink. |
Macro defined in file: hotlink.kmm |
macros(IE_OpenPage) |
Opens the current page in Internet Explorer. |
Macro defined in file: ie.kmm (sendto.kmm) |
macros(IE_OpenLink) |
Open link in Internet Explorer. |
Macro defined in file: ie.kmm (sendto.kmm) |
macros(IE_OpenImage) |
Open image in Internet Explorer. |
Macro defined in file: ie.kmm (sendto.kmm) |
macros(IE_OpenURL) |
Opens the URL bar text in Internet Explorer. |
Macro defined in file: ie.kmm (sendto.kmm) |
macros(Mail_ConfigureMail) |
Opens the dialog to configure your mail client. |
Macro defined in file: mail.kmm |
macros(Mail_ConfigureNews) |
Opens the dialog to configure your news client. |
Macro defined in file: mail.kmm |
macros(Mail_ReadMail) |
Opens your preferred email client. |
Macro defined in file: mail.kmm |
macros(Mail_ReadNews) |
Opens your preferred news client. |
Macro defined in file: mail.kmm |
macros(Mail_ComposeMessage) |
Opens your mail client. |
Macro defined in file: mail.kmm |
macros(Mail_SendPageURL) |
Send a link to the current page by mail. |
Macro defined in file: mail.kmm |
macros(Mail_SendLinkURL) |
Send the current link by mail. |
Macro defined in file: mail.kmm |
macros(Mail_SendImageURL) |
Send a link to the current image by mail. |
Macro defined in file: mail.kmm |
macros(Mail_SendFrameURL) |
Send a link to the current frame by mail. |
Macro defined in file: mail.kmm |
macros(Mail_SendSelection) |
Send the selected text by mail. |
Macro defined in file: mail.kmm |
macros(mtypes) |
Change file type settings. |
Macro defined in file: mtypes.kmm |
macros(NewsFox) |
Open NewsFox for reading news feeds. |
Macro defined in file: newsfox.kmm |
macros(Proxy_None) |
Connect directly to the Internet. |
Macro defined in file: proxy.kmm |
macros(Proxy_Auto) |
Connect to the Internet over any detected proxy. |
Macro defined in file: proxy.kmm |
macros(Proxy_Custom([option])) |
Connect to the Internet over the specified proxy. Options:
proxyN => where N is a number from 1 to N proxies defined in Preferences
kmeleon.plugins.macros.proxyN.name |
Macro defined in file: proxy.kmm |
macros(Reload_Continuously) |
Continuously reload the current page. |
Macro defined in file: reload.kmm |
macros(Search) |
Uses the default search engine to search for the selected text or
URL bar text (if different from page URL). Otherwise, the search prompt
will appear. |
Macro defined in file: search.kmm |
macros(Search_PasteAndSearch) |
Search the Web for Clipboard contents. |
Macro defined in file: search.kmm |
macros(Search_ToggleEngineLock) |
Lock or unlock the current search engine as the default engine. |
Macro defined in file: search.kmm |
macros(Search_Metasearch) |
Search the Web using multiple engines. |
Macro defined in file: search.kmm |
macros(Search_KMForums) |
Search the K-Meleon forums. |
Macro defined in file: search.kmm |
macros(Search_Engine([option])) |
Search the Web using the specified engine. Options:
N => number of search engine
Look web search Preferences, kmeleon.plugins.macros.search.engine
or search.xml file in your profile folder. |
Macro defined in file: search.kmm |
macros(Translate_From([option])) |
Translate from the specified language. Options:
xx => Where xx is a local language pair; en=english, es=spanish, ... |
Macro defined in file: translate.kmm |
macros(Translate_To([option])) |
Translate to the specified language. Options:
xx => Where xx is a local language pair; en=english, es=spanish, ... |
Macro defined in file: translate.kmm |
macros(Translate_ToggleRegion([option])) |
Show languages from the specified region in the translation menu or not. Options:
0 => West European
1 => North European
2 => East European
3 => South European
4 => East Asian
5 => SE And SW Asian
6 => Middle Eastern |
Macro defined in file: translate.kmm |
macros(UserAgent([option])) |
Set the specified User Agent string. Options:
empty => K-Meleon default
1 => Firefox 2.0
2 => SeaMonkey 1.1 |
Macro defined in file: useragent.kmm |
macros(UserAgent_Custom) |
Set a custom User Agent string. |
Macro defined in file: useragent.kmm |
macros(UserAgent_AlertString) |
View the current User Agent string. |
Macro defined in file: useragent.kmm |
macros(UserAgent_ToggleReset) |
Toggle resetting the default User Agent string when exiting. |
Macro defined in file: useragent.kmm |
macros(Zoom_In) |
Perform the Zoom In button action. |
Macro defined in file: zoom.kmm |
macros(Zoom_Out) |
Perform the Zoom Out button action. |
Macro defined in file: zoom.kmm |
macros(Zoom_Page_In) |
Increases the size of images and text on the page. |
Macro defined in file: zoom.kmm |
macros(Zoom_Page_Out) |
Decreases the size of images and text on the page. |
Macro defined in file: zoom.kmm |
macros(Zoom_Images_In) |
Increases the size of images on the page. |
Macro defined in file: zoom.kmm |
macros(Zoom_Images_Out) |
Decreases the size of images on the page. |
Macro defined in file: zoom.kmm |
macros(Zoom_Image_In) |
Increase the size of the current image. |
Macro defined in file: zoom.kmm |
macros(Zoom_Image_Out) |
Decrease the size of the current image. |
Macro defined in file: zoom.kmm |
macros(Zoom_Page) |
Let zoom buttons effect text and images. |
Macro defined in file: zoom.kmm |
macros(Zoom_Text) |
Let zoom buttons effect text only. |
Macro defined in file: zoom.kmm |
macros(Zoom_Images) |
Let zoom buttons effect images only. |
Macro defined in file: zoom.kmm |
MAIN MACROS, some useful macros |
Function |
Available in Accel, Macros, Menus, Toolbars |
- Events strings:
$OnInit
$OnSetup
$OnStartup
$OnOpenWindow
$OnOpenTab
$OnLoad
$OnLoadOnce
$OnActivateWindow
$OnCloseWindow
$OnCloseTab
$OnCloseGroup
$OnWMAppExit
$OnQuit |
Append any macro to be executed On[event] to the appropriate string (semicolon-separated lists ';'). |
Macro defined in file: main.kmm |
- Macro modules string:
$macroModules |
Append any installed module's name to this string (semicolon-separated list ';'). |
Macro defined in file: main.kmm |
- Plugins presence:
$kBookmarks
$kFavorites
$kFullscreen
$kHistory
$kHotlist
$kLayers
$kLayersOnly
$kPrivacy
$kRebarmenu
$kSessions
$kToolbars
$kTabs |
Use these global vars to determine the presence of a plugin.
Do not read kmeleon.plugins.?.load at runtime! (The pref may be false although the plugin is currently loaded or vice versa. |
Macro defined in file: main.kmm |
macros(kTabs_Detach) |
Detach this tab from the current window. |
Macro defined in file: main.kmm |
macros(kTabs_ReloadAll) |
Reload all tabs in the current window. |
Macro defined in file: main.kmm |
macros(kPrivacy_ClearAll) |
Deletes all your privacy data: cache, cookies, history, URL bar history and passwords. |
Macro defined in file: main.kmm |
macros(kmPrefs([section])) |
Change preferences and settings. |
Macro defined in file: main.kmm |
- Use for text files: (Open)
macros(getExtensionHandler)
- Use for script files: (Edit)
macros(getSecureExtensionHandler) |
These macros can be used in conjunction with the exec() and
promptforfile() statements to get a command line and a file
type description for a given file extension. |
Macro defined in file: main.kmm |
- To open URLs:
macros(OpenURL)
macros(OpenURL_InBg)
macros(OpenURL_InNew)
macros(OpenURL_InNewWindow)
macros(OpenURL_Selected)
macros(OpenURL_Typed) |
Except OpenURL these macros can only be called by other macros,
because macro function caller must previously define the variable $OpenURL with the URL to open.
Prompt for an URL to open.
Same as OpenURL_InNew, but in background.
Open an URL in a new tab if tabs are enabled, in a new window otherwise.
Open an URL in a new window.
Use this method when an URL was generated from selected text.
Use this method when an URL was generated from a direct user input (by typing into URL Bar or any prompt). |
Macro defined in file: main.kmm |
- Mozilla Chrome:
macros(moz_AboutCache_Image)
macros(moz_AboutCache)
macros(moz_AboutConfig)
macros(moz_JSConsole)
macros(moz_CertificateViewer)
|
View cache information.
View information about the Cache Service.
View the browser configuration page
Open the error console
View stored certificates
|
Macro defined in file: main.kmm |
- Paths to Privacy Preferences:
$pref_Animation
$pref_Colors
$pref_Cookies
$pref_Frames
$pref_Images
$pref_Java
$pref_JavaScript
$pref_Popups
$pref_Referer
|
To use with getpref(TYPE,[preference]). |
Macro defined in file: main.kmm |
$pref_JavaSupport |
Use this global var to determine whether Java can be enabled at runtime. |
Macro defined in file: main.kmm |
macros(pref_ToggleAnimation) |
Toggle image animation. |
Macro defined in file: main.kmm |
macros(pref_ToggleColors) |
Toggle page colors. |
Macro defined in file: main.kmm |
macros(pref_ToggleCookies) |
Toggle cookie acceptance. |
Macro defined in file: main.kmm |
macros(pref_ToggleFrames) |
Toggle frame support. |
Macro defined in file: main.kmm |
macros(pref_ToggleImages) |
Toggle image loading. |
Macro defined in file: main.kmm |
macros(pref_ToggleJava) |
Toggle Java support. |
Macro defined in file: main.kmm |
macros(pref_ToggleJavaScript) |
Toggle JavaScript execution. |
Macro defined in file: main.kmm |
macros(pref_TogglePopups) |
Toggle popup blocking. |
Macro defined in file: main.kmm |
macros(pref_ToggleReferer) |
Toggle HTTP referer transmission. |
Macro defined in file: main.kmm |
- Type Ahead Find (Page Search):
$_pref_TAF
macros(pref_ToggleTAF)
macros(pref_ToggleTAFAuto)
macros(pref_ToggleTAFLinks)
|
Path to Preference.
Toggle Find As You Type.
Toggle Find As You Type Autostart.
Toggle Find As You Type in links only.
|
Macro defined in file: main.kmm |
- K-Meleon Preferences:
$KM_Version
$KM_Flashblock
$KM_Adblock |
K-Meleon version.
Path to Flashblock preference.
Path to Adblock preference. |
Macro defined in file: main.kmm |
macros(KM_ToggleFlashblock) |
Toggle Flashblock. |
Macro defined in file: main.kmm |
macros(KM_ToggleAdblock) |
Toggle Ad-Blocking StyleSheet. |
Macro defined in file: main.kmm |
- Homepage preferences:
$KM_Homepage
$KM_HomeSess
$KM_StartHome
$KM_StartSess |
Path to Homepage preference.
Path to Home Session preference.
Path to Start Home preference.
Path to Start Session preference. |
Macro defined in file: main.kmm |
macros(KM_SetAsHomepage) |
Set the current page as the Home page. |
Macro defined in file: main.kmm |
macros(KM_StartBlank) |
Let K-Meleon start with a blank page. |
Macro defined in file: main.kmm |
macros(KM_StartWithHomepage) |
Let K-Meleon start with the Home page. |
Macro defined in file: main.kmm |
macros(KM_StartWithSession) |
Let K-Meleon start with a saved session. |
Macro defined in file: main.kmm |
- JavaScript Document Handling:
$JS_doit
$JS_func
$JS_last
$JS_fail |
Parameters for JS_hndlDoc(s) (set those you need before calling the macro):
Takes the code to be executed in the context of each frame.
Is the right place for functions and global variables (e.g. when you want to count something over all frames)
Is the right place for finishing actions (e.g. when you want to alert what you have counted over all frames)
Is the right place to handle errors that may occur when accessing a frame (Gecko prevents cross-site scripting) |
Macro defined in file: main.kmm |
macros(JS_hndlDocs) |
To inject JS in each frame. |
Macro defined in file: main.kmm |
macros(JS_hndlDoc) |
Same as JS_hndlDocs, but only for the current frame. |
Macro defined in file: main.kmm |
macros(JS_hndlTop) |
Same as JS_hndlDoc, but only for the topmost frame (to avoid cross site scripting). |
Macro defined in file: main.kmm |
- JavaScript Image Handling:
$JS_doitImage
$JS_doitInput |
Parameters for JS_hndlImage (set those you need before calling the macro):
Takes the code to be executed in the context of all matching images in the current frame.
Takes the code to be executed in the context of all matching image-type input elements in the current frame |
Macro defined in file: main.kmm |
macros(JS_hndlImage) |
To inject JS for images. |
Macro defined in file: main.kmm |
- Parameter for JS_hndlLink:
$JS_doitLink |
Parameters for JS_hndlLink (set this you need before calling the macro):
Takes the code to be executed in the context of all matching links in the current frame. |
Macro defined in file: main.kmm |
macros(JS_hndlLink) |
To inject JS in all matching links in the current frame. |
Macro defined in file: main.kmm |
macros(JS_reloadFrame) |
Reload the current frame. |
Macro defined in file: main.kmm |
macros(JS_reloadImage) |
Reload the current image. |
Macro defined in file: main.kmm |
macros(JS_killApplets) |
Erase all Java applets in the current page. |
Macro defined in file: main.kmm |
macros(JS_killFlash) |
Erase all Flash objects in the current page. |
Macro defined in file: main.kmm |
macros(JS_scrollTop) |
Scroll to the top of the current page. |
Macro defined in file: main.kmm |
macros(JS_scrollBottom) |
Scroll to the bottom of the current page. |
Macro defined in file: main.kmm |
macros(JS_scrollLeft) |
Scroll to the left end of the current page. |
Macro defined in file: main.kmm |
macros(JS_scrollRight) |
Scroll to the right end of the current page. |
Macro defined in file: main.kmm |
macros(Go_Copy) |
Copy URL Bar contents to the Clipboard. |
Macro defined in file: main.kmm |
macros(Go_New) |
Open URL Bar contents in a new page. |
Macro defined in file: main.kmm |
macros(Go_Paste) |
Open Clipboard contents as URL. |
Macro defined in file: main.kmm |
macros(Go_Reset) |
Reset the URL Bar. |
Macro defined in file: main.kmm |
macros(Go_Selected) |
Open the selected text as URL or open URL Bar contents. |
Macro defined in file: main.kmm |
macros(Go_Top) |
Go to the topmost directory level of the current domain. |
Macro defined in file: main.kmm |
macros(Go_Up) |
Go up one directory level in the current domain. |
Macro defined in file: main.kmm |
macros(Home) |
Perform the Home button action. |
Macro defined in file: main.kmm |
macros(RSS) |
Perform the RSS button action. |
Macro defined in file: main.kmm |
macros(Open_TextAsURL) |
Open the selected text as URL. |
Macro defined in file: main.kmm |
macros(Open_KMReadme) |
View basic information on the K-Meleon project. |
Macro defined in file: main.kmm |
macros(Open_KMWiki) |
Go to the K-Meleon Wiki. |
Macro defined in file: main.kmm |
macros(ExecMacros_Frames) |
Execute one or more macros if frame support is granted.
Parameters (set before calling):
$ExecMacros = The macros to be executed (semicolon-separated list ';'). |
Macro defined in file: main.kmm |
macros(ExecMacros_JavaScript) |
Execute one or more macros if JavaScript execution is granted.
Parameters (set before calling):
$ExecMacros = The macros to be executed (semicolon-separated list ';'). |
Macro defined in file: main.kmm |
macros(ExecMacros_Popups) |
Execute one or more macros overriding any restriction in regard to popup windows.
Parameters (set before calling):
$ExecMacros = The macros to be executed (semicolon-separated list ';').
$ForceTab = Force popups into tabs (true or false). |
Macro defined in file: main.kmm |
macros(ExecMacros_List) |
Execute one or more macros for each item of a semicolon-separated list (;).
Parameters (set before calling):
$ExecMacros = The macros to be executed (semicolon-separated list ';').
$List = The list to be processed ("[string1];[string2];...;[stringN];" or an empty string).
Output (for use in your macros):
$ListItem = The current substring [stringM]. |
Macro defined in file: main.kmm |
INDEX |