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 web page to Google Bookmarks.

Invoke this macro from the document popup menu. You need to be logged into your Google Account before you do that.




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

# gbookmarks.kmm
#
# Macro for bookmarking a page at Google Bookmarks. You need to be logged into
# your Google Account before invoking this macro.

gbookmarks_run{
menugrayed=(hostname($URL)=="");
$__title=$TITLE==""?$URL:$TITLE;
$OpenURL="http://www.google.com/bookmarks/mark?op=add&bkmk=";
$OpenURL=$OpenURL.urlencode($URL);
$OpenURL=$OpenURL."&title=".urlencode($__title);
&OpenURL_InNew;
}

_gbookmarks_buildmenu{
setmenu(DocumentPopup,macro,"Bookmark on Google Bookmarks",gbookmarks_run,-1);
setmenu(FrameDocumentPopup,macro,"Bookmark on Google Bookmarks",gbookmarks_run,-1);
}

$OnInit=$OnInit."_gbookmarks_buildmenu;";
$macroModules=$macroModules."gbookmarks;";


# vim:set tw=0:
# -- The End --


Comments & Questions

K-Meleon

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