K-Meleon

KMeleonWiki > Resources > MacroLibrary > KmmWobZIP

Original & submitted code by: desga2



Notes:

This macro integrates the WobZIP web service which may help you to uncompress files in the fly.
Maximum file size: 100MB
Formats supported: 7z, ZIP, GZIP, BZIP2, TAR, RAR, CAB, ISO, ARJ, LZHCHM, Z, CPIO, RPM, DEB and NSIS
Unzip a url directly:
http://wobzip.org/?type=url&url=FILE_URL_HERE&p=PASSWORD_HERE
Known bugs:
1. Uploader may cause corrupted files.
2. There are reports that .tar.gz and .tar.bz2 file extension do not work.



Open your User Macro Folder (Edit > Configuration > User-Defined Macros) or your Macro Folder
(Edit > Configuration > Macros) and create the following text files:

WobZIP.kmm

# K-Meleon Macros (http://kmeleon.sourceforge.net/wiki/index.php?id=MacroLanguage)

# ---------- WobZIP ------------------------------------------------------------------------------------
#
# Dependencies : main.kmm (OpenURL), sendto.kmm (menus)
# Resources    : -
# Preferences  : -
#
# ------------------------------------------------------------------------------------------------------------

WobZIP{
opennew("http://wobzip.org/?type=url&url=".$LinkURL);
} 

# ----- PRIVATE

_WobZIP_BuildMenu{
index($macroModules,";SendTo;")>-1?setmenu($_SendTo_Link,macro,"&WobZIP",WobZIP):setmenu(LinkOpenExternal,macro,"&WobZIP",WobZIP);
setmenu("Selection",macro,"Uncompress with &WobZIP",WobZIP);
}
$OnInit=$OnInit."_WobZIP_BuildMenu;";

# ------------------------------------------------------------------------------------------------------------
$macroModules=$macroModules."WobZIP;";


Comments & Questions

K-Meleon

(c) 2000-2010 kmeleonbrowser.org. All rights reserved.
design by splif.