Quote
JujuLand
kko can confirm.
CopyURLs{ setclipboard(pluginmsgex(layers,GetLayersInWindow,"",STRING)); } _CopyURLs_BuildMenu{ # layer button popup $__m="Co&py All Layer URLs"; $kLayers==true?setmenu(LayerButtonPopup,macro,$__m,CopyURLs,CloseLayer):0; $kLayers==true?setmenu(LayerButtonPopup,separator,$__m):0; } $OnInit=$OnInit."_CopyURLs_BuildMenu;";
# K-Meleon Macros (http://kmeleon.sourceforge.net/wiki/index.php?id=MacroLanguage) # ---------- Layer Urls Copier -------------------------------------------- # # Dependencies : - # Resources : - # Preferences : - # # ---------------------------------------------------------------------- CopyLayerURLs{ setclipboard(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;";
$_layers_url=pluginmsgex(layers,GetLayersInWindow,"",STRING); $_layers_url=gsub("\nhttp://", "http://", $_layers_url); setclipboard($_layers_url);
CopyLayerURLs{ setclipboard(pluginmsgex(layers,GetLayersInWindow,"",STRING)); $_layers_url=gsub("\n", "\t", getclipboard()); setclipboard($_layers_url); }
$__m="Co&py All Layer URLs";
$__m=_("Co&py All Layer URLs");
# LANGUAGE DEFINITION FILE #-------------------------------------------------------- # Added by LayerURLColier Extension (don't edit this comment) #-------------------------------------------------------- Co&py All Layer URLs=Co&pier les URL des onglets #--------------------------------------------------------
Quote
JujuLand
CopyLayerURLs{
setclipboard(pluginmsgex(layers,GetLayersInWindow,"",STRING));
$_layers_url=gsub("\n", "\t", getclipboard());
setclipboard($_layers_url);
}
Quote
JujuLand
$__m="Co&py All Layer URLs";
by
$__m=_("Co&py All Layer URLs");
Quote
zelgon
To perfection I would need to fulfill one more condition though, and that is to put only one url per line.
setclipboard(pluginmsgex(layers,GetLayersInWindow,"",STRING));
setclipboard(gsub("\t","\r\n",pluginmsgex(layers,GetLayersInWindow,"",STRING)));
# 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;";And it's working flawlessly. In any editor supporting linux line breaks (input), afterward best saved like iso-8859-1.