K-Meleon
KMeleonWiki > Resources > MacroLibrary > KmmLayerUrlsCopier
Submitted by: desga2
Original code by: kko
Note: this macro requires the deprecated layers Kplugin for pseudo-tabs; layers are deprecated. The latest official versions of K-Meleon and all active development implement true tabs.
Notes:
This macro copy all layers URLs in clipboard.
Open your User Macro Folder (Edit > Configuration > User-Defined Macros) or your Macro Folder (Edit > Configuration > Macros) and create the following text file(s):
# K-Meleon Macros (http://kmeleon.sourceforge.net/wiki/index.php?id=MacroLanguage)
# ---------- Layer Urls Copier ----------------------------------
#
# Dependencies : -
# Resources : -
# Preferences : -
#
# ----------------------------------------------------------------------
CopyLayerURLs{
setclipboard(gsub("\t","\n",pluginmsgex(layers,GetLayersInWindow,"",STRING)));
}
# ----- PRIVATE
_LayerUrlsCopier_BuildMenu{
# layer button popup
$__m=_("Co&py All Layer URLs");
$kLayers==true?setmenu(LayerButtonPopup,macro,$__m,CopyLayerURLs,CloseLayer):0;
$kLayers==true?setmenu(LayerButtonPopup,separator,$__m):0;
}
$OnInit=$OnInit."_LayerUrlsCopier_BuildMenu;";
# -----------------------------------------------------------------------
$macroModules=$macroModules."LayerUrlsCopier;";