1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-11-04 08:17:17 -05:00

Reflow some logic in google_video.js.

This commit is contained in:
Miciah Dashiel Butler Masters 2006-01-25 15:50:51 +00:00 committed by Miciah Dashiel Butler Masters
parent 8a4a18796b
commit 8391080201

View File

@ -2,13 +2,12 @@
* from the front page or the search page, and the video will automatically * from the front page or the search page, and the video will automatically
* be loaded. */ * be loaded. */
function load_google_video(cached) { function load_google_video(cached) {
if (cached.uri.match(/^http:\/\/video.google.com\/videoplay/)) { if (!cached.uri.match(/^http:\/\/video.google.com\/videoplay/))
var re; return true;
re = /(<object data="\/googleplayer.swf\?videoUrl=)(.*?)(\&)/; var re = /(<object data="\/googleplayer.swf\?videoUrl=)(.*?)(\&)/;
var uri = cached.content.match(re)[2]; var uri = cached.content.match(re)[2];
if (uri) elinks.location = unescape(uri); if (uri) elinks.location = unescape(uri);
}
return true; return true;
} }