Reply
Thread Tools
longcat's Avatar
Posts: 333 | Thanked: 153 times | Joined on Feb 2010 @ blah blah
#1
Hm... I stumbled upon some nice articles, and I wanted to share them (send them using sms, email, twitter or whatever) and I couldn't because there is no sharing opts in browser. So I have to copypaste them in corresponding app, that sucks.

I wonder is is possible to make some addon for browser to do this, or I'm missing something?

Anyone?
 
Posts: 540 | Thanked: 387 times | Joined on May 2009
#2
Well depending on what you are trying to do, you can probably get a way with a "bookmarklet" - a JavaScript bookmark.
Here's one which sends an email of the current page using the title of the current page as the subject of the email. It sends to a specific recipient using your gmail account (if you aren't logged in, it will ask you to login before proceeding). Save the JS as a bookmark (the URL part) then click the bookmark whenever you want to send a link. It's not super versatile but if you just send links to one person all the time then it's a nobrainer. You could also use this to send a SMS as you can send an email as a SMS using gmail.

replace SOMEONE@MAIL.COM with the email address you want to send to.

PHP Code:
javascript:(function(){var%20to%20=%20encodeURIComponent("SOMEONE@MAIL.COM");%20var%20subject%20=%20encodeURIComponent(content.document.title);%20var%20body%20=%20encodeURIComponent(content.document.location);%20var%20url%20=%20"http://mail.google.com/mail/?ui=1&view=cm&fs=1&tf=1"%20+%20%20%20"&to="%20+%20to%20+%20"&su="%20+%20subject%20+%20"&body="%20+%20body;%20var%20name%20=%20"addwindow";%20var%20feature%20=%20"status=no,toolbar=no,width=575,height=545,resizable=yes";%20var%20win%20=%20window.open(url,%20name,%20feature);%20setTimeout(function()%20{%20%20%20win.focus();%20},%20250);})(); 
It's one line and so it doesn't want to word-wrap.
 
longcat's Avatar
Posts: 333 | Thanked: 153 times | Joined on Feb 2010 @ blah blah
#3
Not bad at all ... now how can I make addon including this ?
 
Reply


 
Forum Jump


All times are GMT. The time now is 22:29.