General :  K-Meleon Web Browser Forum
General discussion about K-Meleon 
make tinyurl
Posted by: disrupted
Date: March 08, 2009 12:11AM

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

# ---------- make tinyurl---------------------------------------------------------------------------------------------------------------

$_tool_path=getfolder(RootFolder)."\\Tools";
$_km_path=getfolder(RootFolder)."\\k-meleon.exe";

tinyurl{
#menugrayed=(hostname($URL)=="");
$tiny = $URL;
$tiny = prompt("This will Create TinyURL from the following address:", "Generate TinyUrl", $tiny);
$tiny == "" ? "" : opentab("httpee://t1ny.us/l.php?long=".$tiny);
}


tinyurl_BuildMenu{
setmenu(WebServices,macro,"Generate TinyURL",tinyurl);
}

$OnInit=$OnInit."tinyurl_BuildMenu;";
# ------------------------------------------------------------------------------------------------------------------
$macroModules=$macroModules."tinyurl;";







Options: ReplyQuote
Re: make tinyurl
Posted by: Zoohooter
Date: March 08, 2009 12:25PM

Where in KM do you place this nice creation? tia

Options: ReplyQuote
Re: make tinyurl
Posted by: desga2
Date: March 08, 2009 07:27PM

Edit -> Configuration -> User-Defined Macros

Remember change "httpee://" by "http://" in the code.

K-Meleon in Spanish

Options: ReplyQuote
Re: make tinyurl
Posted by: Zoohooter
Date: March 08, 2009 08:41PM

Thanks for that info Desga2 grinning smiley

Options: ReplyQuote


K-Meleon forum is powered by Phorum.