K-Meleon
KMeleonWiki > Resources > MacroLibrary > KmmGBookmarks
Submitted by: rstlne
Notes:
Google Bookmarks is a bookmarks manager by Google. This macro will help you add a link to Google Bookmarks. Invoke this macro from the document or link popup menu. You need to be logged into your Google Account before you do that.
This macro is inspired by Sean Scanlon's Google Bookmarks Bookmarklet.
Open your User Macro Folder (Edit > Configuration > User-Defined Macros) or your Macro Folder (Edit > Configuration > Macros) and create the following text file(s):
# gbookmarks.kmm # # Macro for bookmarking a page at Google Bookmarks. You need to be logged into # your Google Account before invoking this macro. _gbookmarks{ $OpenURL="http://www.google.com/bookmarks/mark?op=add&bkmk=".urlencode($__url); $OpenURL=$OpenURL."&title=".urlencode($__title); &OpenURL_InNew; } gbookmarks_page{ menugrayed=(hostname($URL)==""); $__url=$URL; $__title=$TITLE==""?$URL:$TITLE; &_gbookmarks; } gbookmarks_link{ $__url=$LinkURL; $__title=$LinkURL; &_gbookmarks; } _gbookmarks_buildmenu{ setmenu(Document,macro,"Save page in Google Bookmarks",gbookmarks_page,-1); setmenu(LinkPopup,macro,"Save link in Google Bookmarks",gbookmarks_link,-1); setmenu(FrameLinkPopup,macro,"Save link in Google Bookmarks",gbookmarks_link,-1); } $OnInit=$OnInit."_gbookmarks_buildmenu;"; $macroModules=$macroModules."gbookmarks;"; # vim:set tw=0: # -- The End --