K-Meleon

KMeleonWiki > Resources > MacroLibrary > KmmFriendFeed

Submitted by: rstlne



Notes:

FriendFeed is a social media and RSS aggregator that takes links, blogs, and pictures that you've posted to popular social media services and collects them into one stream. FriendFeed also allows you to post links to your stream using a bookmarklet. Unfortunately, their bookmarklet doesn't work if you've set your bookmark options to open bookmarks in a new layer.

This macro is the same as using their bookmarklet, except that it works regardless of your bookmark options setting.

Invoke this macro from the document popup menu. You need to be logged into FriendFeed 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):

friendfeed.kmm

# friendfeed.kmm
#
# Macro for sharing links at FriendFeed. (http://friendfeed.com) You need to be
# logged into FriendFeed before invoking this macro. It is the same as using
# FriendFeed's bookmarklet, except that the macro works even if you have set
# your bookmark options to open bookmarks in a new layer.

friendfeed_inject{
$__s="(function(){var e=document.createElement('script');";
$__s=$__s."e.setAttribute('type','text/javascript');";
$__s=$__s."e.setAttribute('src','http://friendfeed.com/share/bookmarklet/javascript');";
$__s=$__s."document.body.appendChild(e)})();";
injectJS($__s);
}

_friendfeed_buildmenu{
setmenu(Document,macro,"Share on FriendFeed",friendfeed_inject,-1);
setmenu(SelectedText,macro,"Share on FriendFeed",friendfeed_inject,-1);
}

$OnInit=$OnInit."_friendfeed_buildmenu;";
$macroModules=$macroModules."friendfeed;";

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


Comments & Questions

K-Meleon

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