mirror of
https://github.com/rkd77/elinks.git
synced 2025-01-03 14:57:44 -05:00
SMJS: videodownloader.net smartprefix
This commit is contained in:
parent
a8cb377325
commit
eced76116d
@ -161,3 +161,15 @@ function babelfish (url)
|
|||||||
|
|
||||||
return 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 "";
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user