Your favorite Apple, iPhone, iPad, iOS, Jailbreak, and Cydia site.
Thread: YouTube App Share Button?
is a discussion within theFile Mods
forums, a part of theiPhone Modding
section;Is there a way to route the share button to allow me to share videos on facebook instead of email? I know there's a way to route safari links to
...-
07-14-2010, 01:01 PM #1
YouTube App Share Button?
Is there a way to route the share button to allow me to share videos on facebook instead of email?
I know there's a way to route safari links to share on FB using AddThis. All I had to do was copy and paste some script into a bookmark and name the bookmark "share" then anytime I wanted to share a website I'd hit that.
Well I want to do something with YouTube. Anyone know of a way to do this?
-
07-16-2010, 02:07 PM #2
Here's the javascript that allows me to set up a Safari bookmark as a sharing portal:
Now what I need to do is somehow integrate that into the YouTube app. When you click share on the YouTube app, it opens up the Mail app automatically. I need to find a way to edit that so safari opens up and takes me to that AddThis page in Safari.Code:javascript:void((function(svc)%20%7Bvar %20d=document,w=window,p=0,b=function()%7Bif(!p)%7Bp=1;if (w.addthis_sendto)addthis_sendto(svc%7C%7C'bkmore', %7Bproduct:'bkm-'+_atc.ver%7D)%7Delse%7Bp=0;if(_atw)_atw.clb()%7D%7D;if (!w._atc)%7Bvar%20ol=w.addthis_onload%7C%7C%5B%5D,o=d.createElement ('script');o.src='//s7.addthis.com/js/250/addthis_widget.js? domready=1&username=bookmarklet';ol.push (b);w.addthis_onload=ol;d.getElementsByTagName('body') %5B0%5D.appendChild(o)%7Delse%20b()%7D)())
I know I can also copy and paste the link into the safari app, but if I can figure out how to do it this way, the process will be more streamlined.
Any help would be appreciated. Thanks!




LinkBack URL
About LinkBacks
Reply With Quote