[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[linterna-magica-commit] [397] Fixes YouTube.
From: |
Ivaylo Valkov |
Subject: |
[linterna-magica-commit] [397] Fixes YouTube. |
Date: |
Mon, 01 Apr 2013 07:00:47 +0000 |
Revision: 397
http://svn.sv.gnu.org/viewvc/?view=rev&root=linterna-magica&revision=397
Author: valkov
Date: 2013-04-01 07:00:41 +0000 (Mon, 01 Apr 2013)
Log Message:
-----------
Fixes YouTube. Closes bugs #38561.
Ticket Links:
------------
http://savannah.gnu.org/bugs/?38561
Modified Paths:
--------------
trunk/src/lm_site_youtube.js
Modified: trunk/src/lm_site_youtube.js
===================================================================
--- trunk/src/lm_site_youtube.js 2013-02-17 11:24:15 UTC (rev 396)
+++ trunk/src/lm_site_youtube.js 2013-04-01 07:00:41 UTC (rev 397)
@@ -353,7 +353,7 @@
function()
{
var data = this.script_data;
- if (!data.match(/yt\.playerConfig =/))
+ if (!data.match(/ytplayer\.config =/))
{
return null;
}
@@ -392,10 +392,8 @@
embed_id= embed_id[embed_id.length-1];
}
- var p = this.get_first_element_by_class("flash-player");
- p = p ? p : this.get_first_element_by_class("html5-player");
+ var p = document.getElementById("movie_player").parentNode;
-
if (!width || !height)
{
height = p ? p.clientHeight : null;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [linterna-magica-commit] [397] Fixes YouTube.,
Ivaylo Valkov <=