Go Back   Google Chrome Forums > Google Chrome > Chrome Plugins


http://chromeplugins.org/frwrdicon.jpg
Top Tip : Click here to Boost Your PC & Chrome Browsing Speed
Reply
 
Thread Tools Display Modes
  #1  
Old 04-23-2009, 06:30 AM
Junior Member
 
Join Date: Apr 2009
Posts: 11
Send a message via AIM to blackcoil Send a message via MSN to blackcoil Send a message via Yahoo to blackcoil
Default NEW YouTube Download Helper Extension

I have been using Google Chrome for 95% of my daily web browsing for about a month now. I love its simplicity, lack of clutter, huge speed increase over Firefox, and its other unique features. The only thing I've been missing from Firefox is the same thing everyone else wants - EXTENSIONS!

Pretty much the ONLY reason I even open Firefox anymore is to browse YouTube and use extensions to download HQ and HD videos. Then I discovered the Chrome "dev" channel and the new ability to create simple extensions for Chrome.

I decided to write my first Chrome extension and to make it a YouTube download helper, since I couldn't find one anywhere that did what I wanted.

When I browse YouTube, I like to (1) see the highest quality video possible and (2) download the highest video quality possible. I also like to (3) keep my downloads organized and named intelligently (not the default video.mp4 or video.flv that most download helpers provide). These were the basic things I wanted to achieve with my extension.

I'm assuming all of you reading this already know that you will need to be using the DEV version of Chrome (currently 2.0.174.0) to use extensions. I also assume you know how to install them.

1. You must be using a Chrome "dev" version.

http://dev.chromium.org/getting-involved/dev-channel

2. You must edit your Chrome shortcut path to look like:

"C:\Documents and Settings\Francesco\Local Settings\Application Data\Google\Chrome\Application\chrome.exe" --enable-extensions --load-extension="C:\Chrome Extensions"

3. Download my code here:

http://www.blackcoil.com/Chrome Extensions.zip

and install it to C:\Chrome Extensions on your computer. Feel free to change the path if you want, just remember to change it in the shortcut path too.

Now browse to a YouTube video page. My extension only affects pages with the path:

http://www.youtube.com/watch*

It does a few things for you:

1. The extension checks to see if an HQ (fmt=18) or HD (fmt=22) version is available, and if it is, the extension makes sure the highest quality video loads on the page.

2. The extension adds a textbox to the right of the video and fills it with a nicely formatted file name for your video in the format:

username - title.mp4

instead of the generic video.mp4 filename most download helpers give you.

3. The extension adds a "Save" link to the right of the textbox that, when clicked, will get the highest quality version of the video and open a download window for you to save it to your computer.

Therefore, the easiest way to use the extension is:

1. Load a YouTube page for a video you want to download.
2. Click the textbox with the pre-built friendly file name and the entire name will be selected.
3. Press CTRL-C.
4. Click the "Save" link to the right of the textbox.
5. A download window will pop up. Select where you want to save the video.
6. Click in the download window where it says "video.mp4" and use CTRL-V to replace "video.mp4" with the friendly video name.
7. Press enter and begin downloading!

If you have any suggestions, let me know. I have some more features in mind, and of course, there is some fine-tuning I can do. If there are weird characters in the video title, you may need to remove them manually. I will fix the Regex to replace those with empty spaces soon.

Francesco
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2  
Old 04-23-2009, 08:05 AM
Luc VN's Avatar
Senior Member
 
Join Date: Sep 2008
Location: Belgium - Europe
Posts: 673
Default

Thanks Francesco

Can this be transformed into a .js script?
I guess the json manifest should be integrated somehow.
Maybe Kyrax can help here?

Luc VN
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3  
Old 04-23-2009, 09:26 AM
StevePaul's Avatar
Senior Member
 
Join Date: Mar 2009
Location: Birmingham, England
Posts: 1,415
Send a message via MSN to StevePaul
Default

Am I losing the plot here ?

I downloaded your Chrome extension and unzipped it ...

I found a JScript Script file, where's the extension file ?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4  
Old 04-23-2009, 12:32 PM
Senior Member
 
Join Date: Apr 2009
Location: Qc, Canada
Posts: 495
Default

Quote:
Originally Posted by StevePaul View Post
Am I losing the plot here ?

I downloaded your Chrome extension and unzipped it ...

I found a JScript Script file, where's the extension file ?
It's not a packaged extension.
You need to put both the .JSON and the .JS file in a folder and load it with --load-extension="PATH"

As for a User Script version, i could do it but i'll wait for blackcoil's permission.

Thanks a lot for sharing this with the community ! I don't download videos from youtube much but for some reason the "highest quality" setting from my youtube account keeps resetting..

This is a good fix.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5  
Old 04-23-2009, 02:35 PM
StevePaul's Avatar
Senior Member
 
Join Date: Mar 2009
Location: Birmingham, England
Posts: 1,415
Send a message via MSN to StevePaul
Default

Thanks for that ...

I'm alright when it comes to User Scripts but get a bit lost when it comes to extensions ...

I'll give it a try ..
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6  
Old 04-23-2009, 05:07 PM
Junior Member
 
Join Date: Apr 2009
Posts: 11
Send a message via AIM to blackcoil Send a message via MSN to blackcoil Send a message via Yahoo to blackcoil
Default

If anyone is lost as to how to install this extension, or how to write their own, here is what I used as a tutorial:

http://dev.chromium.org/developers/d...tensions/howto


And Kyrax, are you asking my permission to convert this into a bookmarklet? By all means, go for it! Let me know how that goes! I would love to see this as a bookmarklet, just haven't taken the time to set it up for that yet.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7  
Old 04-23-2009, 05:13 PM
Senior Member
 
Join Date: Apr 2009
Location: Qc, Canada
Posts: 495
Default

Quote:
Originally Posted by blackcoil View Post
If anyone is lost as to how to install this extension, or how to write their own, here is what I used as a tutorial:

http://dev.chromium.org/developers/d...tensions/howto


And Kyrax, are you asking my permission to convert this into a bookmarklet? By all means, go for it! Let me know how that goes! I would love to see this as a bookmarklet, just haven't taken the time to set it up for that yet.
I was mostly going to go for a User Script, but i'll do a bookmarklet too later today.
Thanks for the enthusiasm
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8  
Old 04-23-2009, 05:24 PM
Junior Member
 
Join Date: Apr 2009
Posts: 11
Send a message via AIM to blackcoil Send a message via MSN to blackcoil Send a message via Yahoo to blackcoil
Default

What is a User Script? Where is that installed? I guess I thought you meant a bookmarklet. The only reason I can think of making this a bookmarklet is if you don't want the functionality on every page. I think it will be tricky to make it a bookmarklet since part of the functionality is doing a redirect to a higher quality version URL.

Anyway, let me know what you're thinking about.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9  
Old 04-23-2009, 05:44 PM
StevePaul's Avatar
Senior Member
 
Join Date: Mar 2009
Location: Birmingham, England
Posts: 1,415
Send a message via MSN to StevePaul
Default

Stick with the User Script please ...

Bookmarklets are good but the more you add, the more you've got to remember, 'cos eventually they wrap around the bookmarks bar !!

Suppose you can always put them in a folder, but then you lose the ease of use ...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10  
Old 04-23-2009, 06:17 PM
StevePaul's Avatar
Senior Member
 
Join Date: Mar 2009
Location: Birmingham, England
Posts: 1,415
Send a message via MSN to StevePaul
Default

Apologies for seeming a bit thick on the subject of extensions ...

Am I right in saying that for every extension there's a JSON and JS file that needs to be in a separate folder for each thing you're trying to do ...

So in this case, for blackcoil's YouTube extension I just unzip his download folder and put the content folder (which contains the JSON and JS files) into whatever my extensions folder is ...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Similar Threads
Thread Thread Starter Forum Replies Last Post
Download YouTube Videos in Chrome Chrome Chrome Tips & Tricks 34 10-27-2009 03:45 PM
AdSweep.crx extension for Chrome calande Chrome Plugins 13 09-13-2009 03:27 AM
Chrome extension and ressource xml Kyrax Chrome Tech 0 04-14-2009 03:26 PM
Download Manager in Chrome? stimpe Chrome Plugins 8 03-18-2009 08:12 AM
Youtube video on MSN Messenger superp Chrome Tips & Tricks 0 12-27-2008 07:19 PM




Chrome Central - Chrome Talk - Chrome Tips and Tricks - Chrome Plugins - Chrome Themes - Chrome Tools - Bugs and Vulnerabilities - Chrome Tech - General Chat


All times are GMT. The time now is 04:00 PM.


Powered by vBulletin® Version 3.7.4 PL1
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Google Chrome and Google™ is a Trademark of Google Inc
This site chromeplugins.org is not affiliated with or sponsored by Google Inc.
Thanks: Taree SEO Forum and John