Facebook share button?

Forums » General Opera topics » Customizing Opera

You need to be logged in to post in the forums. If you do not have an account, please sign up first.

Go to last post

5. June 2010, 18:39:05

matejakezman

Che Guevara

Posts: 367

Facebook share button?

it is useles in opera, but i found something.
http://my.opera.com/Aleksander/blog/2010/04/26/facebook-share-bookmark

but i cant put it on my tool bar, only on personal bar and i dont want to use that toolbar because it is ugly. is there any way to drag bookmark onto address bar or navigation bar?
Tito je jedini Bog

5. June 2010, 19:17:49

Vectronic

... ... ...

Posts: 2538

You can use a button instead: <a href="opera:/button/Go%20to%20page,%22javascript:var%20d=document,f='http://www.facebook.com/share',l=d.location,e=encodeURIComponent,p='.php?src=bm&v=4&i=1272271237&u='+e(l.href)+'&t='+e(d.title);1;try%7Bif%20(!/%5E(.*%5C.)?facebook%5C.%5B%5E.%5D*$/.test(l.host))throw(0);share_internal_bookmarklet(p)%7Dcatch(z)%20%7Ba=function()%20%7Bif%20(!window.open(f+'r'+p,'sharer','toolbar=0,status=0,resizable=1,width=626,height=436'))l.href=f+p%7D;%7Ba()%7D%7Dvoid(0)%22,,%22Facebook%20Share%22,%22Contact38%22">Facebook Share</a>

5. June 2010, 19:25:17

matejakezman

Che Guevara

Posts: 367

wow. thanks smile this is great

hm a problem. i takes me to google most of the times rolleyes
Tito je jedini Bog

5. June 2010, 19:36:59

Vectronic

... ... ...

Posts: 2538

Yeah... one of those "protective" things with the forums, strips out the "javascript" from the link... try <a href="http://76.11.58.186/QuickEdit.htm?edit=opera:/button/Go%20to%20page,%22javascript:var%20d=document,f=%27http://www.facebook.com/share%27,l=d.location,e=encodeURIComponent,p=%27.php?src=bm&v=4&i=1272271237&u=%27+e(l.href)+%27&t=%27+e(d.title);1;try%7Bif%20(!/%5E(.*%5C.)?facebook%5C.%5B%5E.%5D*$/.test(l.host))throw(0);share_internal_bookmarklet(p)%7Dcatch(z)%20%7Ba=function()%20%7Bif%20(!window.open(f+%27r%27+p,%27sharer%27,%27toolbar=0,status=0,resizable=1,width=626,height=436%27))l.href=f+p%7D;%7Ba()%7D%7Dvoid(0)%22,,%22Facebook%20Share%22,%22Contact38%22">this</a> after it loads, click "Create" and then "Add"

<b>Edit</b>: Ok fine... don't do that, simply copy this:

Go to page,"javascript:var d=document,f='http://www.facebook.com/share%27,l=d.location,e=encodeURIComponent,p=%27.php?src=bm&v=4&i=1272271237&u=%27+e(l.href)+%27&t=%27+e(d.title);1;try{if (!/^(.*\.)?facebook\.[^.]*%24/.test(l.host))throw(0);share_internal_bookmarklet(p)}catch(z) {a=function() {if (!window.open(f+'r'+p,'sharer','toolbar=0,status=0,resizable=1,width=626,height=436'))l.href=f+p};{a()}}void(0)",,"Facebook Share","Contact38"

Then paste it into the "Action" box of that page, <i>then</i> Create... then Add...

(Ponders the idea of making it have an "auto-detect" and automatically inserting the "javascript:" at the beginning)

6. June 2010, 20:25:04

matejakezman

Che Guevara

Posts: 367

yes, this works perfectly. thanks.
Tito je jedini Bog

Forums » General Opera topics » Customizing Opera