My favorites | Sign in
Project Logo
                
New issue | Search
for
| Advanced search | Search tips
Issue 9: Youtube embedded on livejournal.com
2 people starred this issue and may be notified of changes. Back to list
Status:  Started
Owner:  ----
Type-Enhancement
Priority-Low


Sign in to add a comment
 
Reported by kibber, Jan 14, 2008
livejournal embeds youtube videos in some weird way through
http://lj-toys.com/, thus making it undetectable by itransmogrify.

for example
http://dolboeb.livejournal.com/1131569.html
Comment 1 by joemaller, Jan 14, 2008
What the hell is LiveJournal doing to their pages? 

This should be easy, but something in their in-page scripts breaks JQuery. I'm trying
to figure out what that is and then how to route around it.


Status: Accepted
Labels: -Type-Defect Type-Enhancement
Comment 2 by eliseo.tiburon2006, Jan 15, 2008
(No comment was entered for this change.)
Comment 3 by joemaller, Jan 15, 2008
As far as I can tell, this isn't going to be possible. There are several reasons.
First, LiveJournal's core.js script extends object.prototype. That's bad and breaks
all kinds of things that try to run after it. This bookmarklet is using jQuery, and
the core.js file breaks core jQuery functionality.

Second, unless someone can explain how to get from this:
`c1b91b66f946c2323d70c89051678883d39da59f`
to this: `djkYrLoZBb0`

Without being able to decode the lj-toys url, the script runs up against the
same-origin wall. Browsers can't read data from frames that don't originate on the
same domain. The YouTube id is just sitting there, but we can't get to it without
reading from a different domain.

I could work around this with a server-side proxy, but one of my goals with this
project was to avoid those. 

Labels: -Priority-Medium Priority-Low
Comment 4 by joemaller, Jan 15, 2008
(No comment was entered for this change.)
Status: Started
Sign in to add a comment

Hosted by Google Code