1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

SMJS: videodownloader.net smartprefix

This commit is contained in:
Miciah Dashiel Butler Masters 2006-06-23 03:58:31 +00:00 committed by Miciah Dashiel Butler Masters
parent a8cb377325
commit eced76116d

View File

@ -161,3 +161,15 @@ function babelfish (url)
return url;
}
/* javascript:videodownloader("%s"); */
function videodownloader (url)
{
elinks.load_uri("http://videodownloader.net/get/?url=" + escape(url),
function (cached) {
var url = cached.content.match(/<a href="(.*?)"><img src=".\/vd\/botdl.gif"/)[1]
if (url) elinks.location = url;
} );
return "";
}