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=siria] [b]This macro is meant for YOU to collect all sorts of LITTLE macro snippets that YOU like[/b], and pick up new ones over time, when you stumble over them, or just ASK in the forum if you need something special. Just little mini-macros that aren't worth creating a single kmm-file for each one and clutter the macro list. That means everyone will have a different version of this! And everyone can post more mini-macros in this thread, for others who might like them. [b]Below are just a few EXAMPLES that I use myself.[/b] [i]To use it: open notepad, copy the blue text into it and save it as MyMiniMacros.kmm in the macros folder. Restart browser.[/i] [color=blue]# K-Meleon Macros (http://kmeleon.sourceforge.net/wiki/index.php?id=MacroLanguage2) # # ------------------ MyMiniMacros .kmm -------------- (example 0.1 by Siria) ----------------- # Forum: kmeleon.sourceforge.net/forum/read.php?9,103064 #---------------------------------------------------------------------------- # # This macro is meant for YOU to collect all sorts of LITTLE macro snippets that YOU like, # and pick up new ones over time, when you stumble over them, or just ASK in the forum if you # need something special. Just little mini-macros that aren't worth creating a single kmm-file for # each one and clutter the macro list. That means everyone will have a different version of this! # # MENU: # If you need a menu entry for a mini-macro, add a line to the "setmenu"-lines at the bottom. # # MOUSE GESTURES AND TOOLBAR BUTTONS: # For mouse gestures new macros must also be added in Tools > Mouse Gestures > Manage actions # For gestures and for buttons the new command is: macros(macroname) # (the "macroname" ist the part before the first "{" of each macro) ############### TABS ################ minimacros_movtabprev{ macroinfo="[b]Move tab to the previous window[/b]. Page will reload."; $OpenURL=$URL; id(ID_CLOSE_TAB); id(ID_WINDOW_PREV); opentab($OpenURL); } # menu below: setmenu(_kTabs_Detach,macro,"Move tab to previous window",minimacros_movtabprev,-1); minimacros_PageNewWindow{ macroinfo="[b]Open current page in a new window as copy[/b]. Page will reload."; $OpenURL=$URL; &OpenURL_InNewWindow; } # menu below: setmenu(_kTabs_Detach,macro,"Copy page into new window",minimacros_PageNewWindow,-1); ############## OPEN IN... ################ minimacros_GoPasteNew{ macroinfo="[b]Get Clipboard and open as URL in New[/b] Tab/Window"; $OpenURL=getclipboard(); &OpenURL_InNew; } # menu below: setmenu(_Go_Clipboard,macro,"Paste And Go in New Page",minimacros_GoPasteNew,"Paste And &Search"); ############## PAGE UP/DOWN ################ # For mouse gestures, otherwise not needed (Already on all keyboards, or click on scrollbar): minimacros_pagedown{$JS_doit="scrollBy(0,scrollByPages(1))";&JS_hndlDoc;} minimacros_pageup{$JS_doit="scrollBy(0,scrollByPages(-1))";&JS_hndlDoc;} minimacros_bottom1up{ macroinfo="Scroll to bottom, then 1 page or x pixels up again (handy for some forums)"; &JS_scrollBottom; $JS_doit="scrollBy(0,scrollByPages(-1))"; &JS_hndlDoc; # $JS_doit="scrollBy(0,-60)"; &JS_hndlDoc; } ############# # (add your own here) ############# MENUS ############## _MyMiniMacros_BuildMenu{ setmenu(_kTabs_Detach,macro,"Move tab to previous window",minimacros_movtabprev,-1); setmenu(_kTabs_Detach,macro,"Copy tab into new window",minimacros_PageNewWindow,-1); setmenu(_Go_Clipboard,macro,"Paste And Go in New Page",minimacros_GoPasteNew,"Paste And &Search"); } $OnInit=$OnInit."_MyMiniMacros_BuildMenu;";[/color][/quote]
[Please Enable JavaScript]
K-Meleon forum is powered by
Phorum
.
Home/News
Screenshots
Download
Documentation
Resources
Get Involved
Forum
Bugs
Development