@ morfana
This is just a quick/rough way to copy part of a link. You do not have to provide a place to output the original and re-copy part of the link. You do have to delete the characters before and after portion that you wish to retain. The results are in the clipboard so that you can paste them wherever you need.
Directions
Highlight the link. Right click beside the link. Choose "Copy link text".
CopyStr.kmm
# K-Meleon Macros (http://kmeleon.sourceforge.net/wiki/index.php?id=MacroLanguage2)
#
# ---------- CopyStr.kmm
#
# Dependencies : - main.kmm,
# Resources : -
# Preferences : -
# Version : - 0.1 2011_04_06
# --------------------------------------------------------------------------------
_CopyStr_GSelect {
macroinfo = _("Copy selected link text to clipboard.");
id(ID_EDIT_COPY );
$_CopyStr_text = getclipboard() ;
$_CopyStr_Return = prompt( $_CopyStr_text , "Delete extra characters" , $_CopyStr_text );
setclipboard( $_CopyStr_Return );
statusbar("The clipboard contains:: ".getclipboard() );
}
_CopyStr_ModMenu {
setmenu("SelectedText",macro,_("Copy link text"),"_CopyStr_GSelect",-1);
}
# - - - - - - - - - - - - - - - - - - - - - -
$OnInit=$OnInit."_CopyStr_ModMenu;";
$macroModules=$macroModules."CopyStr;";