Add subscription to google reader
Posted by: baysao
Date: May 11, 2008 02:13AM

I wrote a macro to get a link to add feed to Google Reader or Google Homepage.
I tested it in Kmeleon 1.5beta. I think it would be work on old version.
I share it here for you guys who are interested.
Quote

# Macro name: greader.kmm
# author: ThanhVu(baysao a cong gmail dot com)
# Macros for add subscription to Google Reader

viewgreader{
menugrayed=(hostname($URL)=="");
$_title=$TITLE==""?$URL:$TITLE;
$OpenURL="http://www.google.com/reader/view/feed/".$LinkURL;
&OpenURL_InNew;
}
addgreader{
menugrayed=(hostname($URL)=="");
$_title=$TITLE==""?$URL:$TITLE;
$OpenURL="http://www.google.com/ig/add?feedurl=".$LinkURL;
$OpenURL=$OpenURL."&feedtitle=".urlencode($_title);
&OpenURL_InNew;
}

# ----- PRIVATE

_Greader_BuildMenu{

setmenu($_SendTo_Link,macro,"&View feed in GoogleReader",viewgreader);
setmenu($_SendTo_Link,macro,"&Add feed to GoogleReader",addgreader);
}
$OnInit=$OnInit."_Greader_BuildMenu;";

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



Edited 4 time(s). Last edit at 05/11/2008 10:46PM by baysao.

Re: Add subscription to google reader
Posted by: desga2
Date: May 11, 2008 04:02AM

Thanks for shared your code with all us.
Included in MacroLibrary.
This code have been renamed to 'Simply Google Reader' (SGreader.kmm) because a Google Reader (Greader, more elaborated coded) already exist.

K-Meleon in Spanish



Edited 1 time(s). Last edit at 05/11/2008 08:25PM by desga2.

K-Meleon forum is powered by Phorum.