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] LOL, not really Soeren :D 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... What works though, is such tiny 1-liners as that Hide-Background macro :) I think everyone can simply take it as a template, just copy and fill it with some other short CSS stuff.... But am a bit curious, is there anything specific that 'scares you off' from using the 'big' one...? All buttons can be hidden, the editor can be deleted, and the menu is just so vast to make customization easier. Or so I thought ;-) And here comes another quicky, one that has bothered me for a long time :) [b][color=red]Repair links with wrong beginning![/color][/b] 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* This macro command can always be used instead of the normal "Open Link" function. It checks if the beginning is okay, then opens the link, otherwise it adds the missing character first and then opens it :P The last line "&OpenURL_InNew" can be changed how you like it, e.g. ..._InBg for background. If anyone has use for it, insert it into the macro in first posting, and copy the setmenu line to the others at the bottom (without the comments at beginning of course): [color=blue]#----- minimacros_RepairLinkURL{ # Repair links with wrong beginning. Seems to be a fashion in some forums or sites to crop first character ;-) $OpenURL=$LinkURL; index($LinkURL,"ttp:")==0 ? $OpenURL="h".$LinkURL : 0; index($LinkURL,"ttps:")==0 ? $OpenURL="h".$LinkURL : 0; # Next one may really need "ww.", but it's just about always an (intentional?) typo. You may disable line with # index($LinkURL,"ww.")==0 ? $OpenURL="w".$LinkURL : 0; &OpenURL_InNew; }[/color] [color=green] [i]# in context-menu for links: [b]setmenu[/b]("LinkOpen",macro,"Open In New - Repair Prefix",minimacros_RepairLinkURL,-1); # Tip: Use "macros(minimacros_RepairLinkURL)" in mouse gesture instead of ID_OPEN_LINK_IN_NEW_TAB [/i][/color] [color=blue] #----- [/color][/quote]
[Please Enable JavaScript]
K-Meleon forum is powered by
Phorum
.
Home/News
Screenshots
Download
Documentation
Resources
Get Involved
Forum
Bugs
Development