Sign up | Lost password? | Help

[ advanced search ]

Youtube direct download script

Forums » Opera Community » General Opera topics » User JavaScript


Go to last post

Wednesday, 18. October 2006, 09:34:30

Youtube direct download script

I have just written small UserJS script youtube-dl which allows downloading .flv movies from youtube.com directly (without flash frontend).

Wednesday, 18. October 2006, 11:30:44 (edited)

del123

avatar

Posts: 114

Could you also make a bookmarklet version?

Wednesday, 18. October 2006, 11:23:48

del123

avatar

Posts: 114

Oh and what will the maestro take up next :smile:?

Maybe Google videos perhaps, like one bookmarklet for each file format there (flv avi mp4).

Wednesday, 18. October 2006, 13:28:45

You'll have to wait for Google version. For now maybe this will satisfy you:


javascript:(function(){var re=new RegExp("player2\.swf\?([^\"]+)\"","m"); document.location.href='http://www.youtube.com/get_video'+re.exec(document.getElementById('interactDiv').getElementsByTagName('script')[0].innerHTML)[1];})()

Tuesday, 31. October 2006, 02:32:24 (edited)

FusionXN1

avatar

Posts: 38

It doesnt show if u select a video from the video section you have to refresh the video page to see it. Anyway to fix this?

EDIT: It only shows when the video has finished loading 100% - any fix for that or?

Tuesday, 31. October 2006, 02:48:25

xErath

javascript guru

avatar

Posts: 6403

Norway

Opera Software

Originally posted by del123:

Could you also make a bookmarklet version?


http://1024k.de/bookmarklets/video-bookmarklets.html

Tuesday, 21. November 2006, 15:13:45

epilos

avatar

Posts: 1518

thanks for the script!

but there is a problem, it asks to save the video as "get_video", so that we have to rename it each time

can this be fixed?

Wednesday, 22. November 2006, 02:33:33

xErath

javascript guru

avatar

Posts: 6403

Norway

Opera Software

Originally posted by epilos:

but there is a problem, it asks to save the video as "get_video", so that we have to rename it each timecan this be fixed?

It's how youtube's server works.
You need to rename it yourself.

Wednesday, 22. November 2006, 11:39:40

epilos

avatar

Posts: 1518

ok, but sometimes, it offers to save a dfGkretE.flv
in most cases ofcourse, it offers to save get_video

Monday, 18. December 2006, 22:47:06

Strife767

avatar

Posts: 200

Yeah, I noticed that too--I have no idea why sometimes you get the <random characters>.flv and sometimes "get_video.html". Any ideas?

Tuesday, 19. December 2006, 01:53:23

DarkGashX

avatar

Posts: 37

Thanks for this! Works nicely. :smile:.

Tuesday, 19. December 2006, 11:23:13

epilos

avatar

Posts: 1518

it would be best to have these features:

1)autorename the get_video file

2)autosave all visited youtube videos (even if I dont wait for them to load completely)

3)save with one click all youtube videos in one webpage

:smile:

Sunday, 31. December 2006, 12:21:58

BunkFace

Spreading the Opera love

avatar

Posts: 471

Is there a version without the images? The image file info is encoded inside the javascript command and don't know how to edit them out.

I prefer to keep my opera6.adr (bookmarks file) to take as less space as possible (for faster download and upload on social bookmarking websites) I think the opera6.adr filesize might affect Opera's loading speed too.

Sunday, 4. February 2007, 12:06:29

Dava

Chief Chimp

avatar

Posts: 773

United Kingdom

I might be missing something here, but how does this work? I have downloaded the script to my UserJS folder (which is configured correctly), but when I go to YouTube what do I do to allow me to download the video?

Dava monkey

Monday, 5. February 2007, 23:44:42

epilos

avatar

Posts: 1518

let the video load

after some time (depending on reasons I cant specify, but surely not much after the video is fully loaded) you will see a link just above the video screen

clicking it, it will offer you to download the video

Tuesday, 6. February 2007, 00:47:39

xErath

javascript guru

avatar

Posts: 6403

Norway

Opera Software

Originally posted by Dava:

I might be missing something here, but how does this work? I have downloaded the script to my UserJS folder (which is configured correctly), but when I go to YouTube what do I do to allow me to download the video?

That script is made with Greasemonkey in mind, so it'll only work when the document loads.
Use my version.
videoscript.js

Wednesday, 7. February 2007, 22:12:38

DarkGashX

avatar

Posts: 37

Thank you! I like your vrsion with the bar at the top and the "download anytime" that it brings. Now I dont have to watch the whole movie to download it :smile:.

Saturday, 10. February 2007, 04:45:35

kinnik

avatar

Posts: 227

youtube.js

mod version
add get flv url funtion to related video

Wednesday, 16. May 2007, 13:45:31

both are awesome stuff!!!
thanks!!!

if u would like to download the youtube videos without watching them u can also use usdownloader (http://www.dimonius.ru/dusd.php this program also downloads from rapidshare and all those download websites!!!) program, it copies the links from the clipboard adds it to programs download list and renames it as well...

Thursday, 17. May 2007, 09:21:03

just change the url www.youtube.com/blablabla to www.kissyoutube.com/blablabla and download the movies.

Thursday, 24. May 2007, 10:36:44

kinnik

avatar

Posts: 227

Youtube just changed the code.The download flv script can't work anymore.
Anybody can fix it?

Monday, 28. May 2007, 07:29:26

kinnik

avatar

Posts: 227

I found a firefox greasemonkey youtube download script
Can it change to opera compatible?

http://userscripts.org/scripts/source/3982.user.js

Monday, 28. May 2007, 08:50:42

xErath

javascript guru

avatar

Posts: 6403

Norway

Opera Software

Originally posted by kinnik:

I found a firefox greasemonkey youtube download script
Can it change to opera compatible?

http://userscripts.org/scripts/source/3982.user.js


http://my.opera.com/community/forums/findpost.pl?id=1908078

Tuesday, 29. May 2007, 08:50:16

kinnik

avatar

Posts: 227

Originally posted by xErath:

Originally posted by kinnik:

I found a firefox greasemonkey youtube download script
Can it change to opera compatible?

http://userscripts.org/scripts/source/3982.user.js


http://my.opera.com/community/forums/findpost.pl?id=1908078



Thanks for your reply.
i have tried your script before.
No doubt,it is great.Now it is place in my userjs folder as a alternative way to download youtube video.
But it is quite annoy that the yellow bar place on the top of screen.
And it is not easy to use coz it would open a new tab for download link and switch to the new tab automatically while i am watching the video.

samuil's script is a good solution and the most simple way to download FLV.But now it can't work.Hope someone can fix it.

Friday, 1. June 2007, 05:06:13

operafan2006

Learning from helping

avatar

Posts: 4870

USA

Originally posted by xErath:

Originally posted by Dava:

I might be missing something here, but how does this work? I have downloaded the script to my UserJS folder (which is configured correctly), but when I go to YouTube what do I do to allow me to download the video?

That script is made with Greasemonkey in mind, so it'll only work when the document loads.
Use my version.
videoscript.js



Great script. Is it possible to make a button or something for much easier access ? It would be popular for new user if a button or a widget could be made in stead of user script. Just a suggestion you might consider.

Sunday, 10. June 2007, 12:20:12

epilos

avatar

Posts: 1518

afaik, flv file is stored in the cache folder
it possible to make a script that will automatically move the files to a C:\youtube-downloads folder?

Sunday, 10. June 2007, 16:38:21

Maulkin

French Section Moderator

avatar

Posts: 257

France

Originally posted by epilos:

afaik, flv file is stored in the cache folder
it possible to make a script that will automatically move the files to a C:\youtube-downloads folder?



As it is said in the download page: "Right-click -> "Save Target As" then select the folder you want.é

Saturday, 26. January 2008, 00:24:08

philry4n

suspecting victim

avatar

Posts: 4666

Indonesia

@xerath the yellow bar is gone :frown: , doesn't work anymore. Any fix?

Saturday, 26. January 2008, 04:33:36

Sweet17th

avatar

Posts: 5

Yeah..I missed that Yellow Line..it was scary to see youtube.com without xeraph's "friendly" yellow line.
Hoping to see that again..AsAP. :smile:

Oh..I download from Opera's cache as the alternative..but i like xeraph version much..

Saturday, 26. January 2008, 07:04:44

fearphage

Trained Swordsman of Unwanted Opera Termination

avatar

Posts: 2009

USA

Here you go.

Saturday, 26. January 2008, 07:27:03

philry4n

suspecting victim

avatar

Posts: 4666

Indonesia

Thanks fearphage!

Saturday, 26. January 2008, 16:26:36

operafan2006

Learning from helping

avatar

Posts: 4870

USA

Originally posted by fearphage:

Here you go.



thanks fearphage, it was broken for sometime. In that period I used http://clipnabber.com/ and the button based on that. Now with script its much easier.

Saturday, 15. March 2008, 00:37:35

MisterE

avatar

Posts: 54

I also want to thank you, fearphage.

Saturday, 15. March 2008, 09:40:22

rfudk

Godlike!

avatar

Posts: 114

Denmark

#fearphage

Nice, thanks, but I cant get it to work with video.google.com? Seems like its doing 404 when trying do dl :/

Saturday, 15. March 2008, 14:11:50

operafan2006

Learning from helping

avatar

Posts: 4870

USA

Originally posted by rfudk:

#fearphage

Nice, thanks, but I cant get it to work with video.google.com? Seems like its doing 404 when trying do dl :/



You may try the video downloader button option.

Saturday, 15. March 2008, 15:30:34

GT500

Security Industry

avatar

Posts: 3450

Fighting Malware

Is anyone else having trouble getting it to work in Opera 9.50?

Saturday, 15. March 2008, 17:37:54

Originally posted by GT500:

Is anyone else having trouble getting it to work in Opera 9.50?


It looks like it's working for me. I just downloaded a youtube video and watched it (with VLC).
I'm using opera 9.50 build 9770.

Saturday, 15. March 2008, 17:52:15

BAMAToNE

Internet Sensation

avatar

Posts: 1857

Tuscaloosa, AL

Well done, fearphage!

Sunday, 16. March 2008, 02:34:15

GT500

Security Industry

avatar

Posts: 3450

Fighting Malware

Originally posted by sirnh1:

It looks like it's working for me. I just downloaded a youtube video and watched it (with VLC).
I'm using opera 9.50 build 9770.



I'm using build 9807, so that might make the difference.

Sunday, 16. March 2008, 08:04:21

Originally posted by GT500:


I'm using build 9807, so that might make the difference.


I just tried build 9807 and it seems to work there too...
(I don't know if it matters but I'm using opera on Windows XP SP2)

Sunday, 16. March 2008, 14:50:35

fearphage

Trained Swordsman of Unwanted Opera Termination

avatar

Posts: 2009

USA

Originally posted by rfudk:

I cant get it to work with video.google.com

I don't even see the yellow bar on video.google. This is because google is using iframes unlike any of the other services. I'd have to special case it into working. I don't know when I'll have time for that. I've been really busy lately.

Sunday, 16. March 2008, 15:51:58

rfudk

Godlike!

avatar

Posts: 114

Denmark

Originally posted by fearphage:

I don't even see the yellow bar on video.google. This is because google is using iframes unlike any of the other services. I'd have to special case it into working. I don't know when I'll have time for that. I've been really busy lately.



ill look forward for that day then :smile: Just take your time Sir.

Monday, 17. March 2008, 04:06:40

GT500

Security Industry

avatar

Posts: 3450

Fighting Malware

Originally posted by sirnh1:

I just tried build 9807 and it seems to work there too...



Never mind, I figured out that Opera didn't save the file extension...

Tuesday, 18. March 2008, 16:04:21

matejakezman

Che Guevara

avatar

Posts: 219

Croatia

hm, where is "dowload link" i downloaded script, and everything. there is no button?

Tuesday, 18. March 2008, 21:13:54

GT500

Security Industry

avatar

Posts: 3450

Fighting Malware

Originally posted by matejakezman:

hm, where is "dowload link" i downloaded script, and everything. there is no button?



There should be a yellow bar at the top of the page with a download link. Check and make sure that Opera didn't mistakenly save it as the wrong type of file.

Wednesday, 19. March 2008, 01:31:55

operafan2006

Learning from helping

avatar

Posts: 4870

USA

Originally posted by matejakezman:

there is no button?


http://my.opera.com/community/forums/findpost.pl?id=2483617

Saturday, 22. March 2008, 11:44:36

matejakezman

Che Guevara

avatar

Posts: 219

Croatia

after clearing all cookies, cache, and addresses it seems to be working now. strange.

Sunday, 1. June 2008, 17:58:41

Sweet17th

avatar

Posts: 5

Hai there..
it seems that "THE YELLOW LINE" is missing again..it's about 2 days ago..(now is June 1st, '08)
can u fix it..please..coz i used it very often (i like it)..and it help me a lot for downloading video from youtube..
oh, i used OPERA 9.25 and "userjs/videoscript.js" plugins.
Anyway Thanks 4 your help.

Cann't wait to see that friendly yellow line again on youtube.. ^_^

Wednesday, 11. June 2008, 11:25:39

Anyone here, able to fix that videoscript?
It's not working anymore.... (using opera 9.50 beta 2)

Forums » Opera Community » General Opera topics » User JavaScript