mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
Reflow some logic in google_video.js.
This commit is contained in:
parent
8a4a18796b
commit
8391080201
@ -2,13 +2,12 @@
|
||||
* from the front page or the search page, and the video will automatically
|
||||
* be loaded. */
|
||||
function load_google_video(cached) {
|
||||
if (cached.uri.match(/^http:\/\/video.google.com\/videoplay/)) {
|
||||
var re;
|
||||
re = /(<object data="\/googleplayer.swf\?videoUrl=)(.*?)(\&)/;
|
||||
var uri = cached.content.match(re)[2];
|
||||
if (!cached.uri.match(/^http:\/\/video.google.com\/videoplay/))
|
||||
return true;
|
||||
var re = /(<object data="\/googleplayer.swf\?videoUrl=)(.*?)(\&)/;
|
||||
var uri = cached.content.match(re)[2];
|
||||
|
||||
if (uri) elinks.location = unescape(uri);
|
||||
}
|
||||
if (uri) elinks.location = unescape(uri);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user