Extensions :  K-Meleon Web Browser Forum
All about K-Meleon extensions. 
extract websites favicons
Posted by: disrupted
Date: April 08, 2009 01:09AM

not 100% reliable but works with 90% of websites
download from kmext

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

# ---------extracts favicon

$_tool_path=getfolder(RootFolder)."\\Tools";

favicon{
menugrayed=(hostname($URL)=="");
$HOST = hostname( $URL );
exec($_tool_path."\\faviconget.exe " .$HOST);
}

_favicon_BuildMenu{
setmenu("Page &Properties",macro,"Extract Favicon",favicon,3);
}

$OnInit=$OnInit."_favicon_BuildMenu;";

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



; AutoIt Version: 3.0
; Language: English
; Platform: Win9x/NT
; Author: yanni
;
#Include <File.au3>
#NoTrayIcon

$namesug1=StringReplace($CmdLine[1], "www.", "")

$faviconcache=(@ScriptDir & "\favicons")
$faviconpath = FileSaveDialog("Choose Favicon name & path", $faviconcache, "Icon (*.ico)", 2, $namesug1)
$faviext=($faviconpath &".ico")

$sitecon=("http://"; & $CmdLine[1] & "/favicon.ico")
InetGet($sitecon, $faviext, 1, 1)
exit








Edited 1 time(s). Last edit at 03/13/2010 08:49AM by disrupted.

Options: ReplyQuote


K-Meleon forum is powered by Phorum.