KMeleonWiki > Resources > MacroLibrary > KmmGShared

Submitted by: rstlne


Google Shared Stuff is a Google service for sharing links to web pages. This macro is equivalent to the Google Shared Stuff bookmarklet except that it works even if you have your bookmark options set to open bookmarks in a new layer. Invoke the macro from the Document popup menu on the web page you wish to share.

Open your User Macro Folder (Edit > Configuration > User-Defined Macros) or your Macro Folder (Edit > Configuration > Macros) and create the following text file(s):


# gshared.kmm
# Macro equivalent for the "Email / Share" bookmarklet from Google Shared
# Stuff. It is the same as the bookmarklet provided by Google, except that the
# macro works even if you have set your bookmark options to open bookmarks in a
# new layer.

# Temporarily turn off popup blocking.

$__s="(function(){var a=document,b=a.createElement('script'),w=window,g={};";
$__s=$__s."function f(o){";
$__s=$__s."try{var d=new google.share.EmailWidget(g);d.display()}";

# Restore popup blocking if it was turned on previously.

setmenu(Document,macro,"Share in Google Shared Stuff",gshared_go,-1);


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

Comments & Questions


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