YouTube Googler

By MooGoo Last update May 11, 2009 — Installed 50,824 times.

Archived Comments (locked)

in
Subscribe to Archived Comments 119 posts, 51 voices



Jesse Andrews Admin

The following is an archive of comments made before threaded discussions was implemented (November 16th, 2008)

 
StrawTurkey User
And, as far as the horizontal scroll-bar, I'm not sure if you caught this, or if it works for you, but it works for me... I changed:

overflow: auto in div#ovSide to
overflow: -moz-scrollbars-vertical

And it looks perfect.

Free Image Hosting at www.ImageShack.us

I'm not sure if var newval = ((change - lastpos[1])/4) + curper; works, but, it's okay, I've gotten used to the way it is, and probably like it as it is anyway.

I'd be curious about trying to port the concept over to Google Video, but, then again, I don't use Google Video like I use YouTube, (although, chicken-and-egg, maybe I'd use it more if I could do this sort of stuff with it.) -- I might play around with it, but, YouTube is the main thing. But I think it would benefit Google Video and anybody else, to copy what you've done. :)
 
StrawTurkey User

Just wanted to let you know (I guess I use that phrase a lot), it seems that YouTube has changed a little bit of their code, or something, and timecode links now work properly with your plugin:

Example (zombies, 50 seconds in): http://www.youtube.com/watch?v=uxYxh0am6pw#t=50s

 
Shinykirby User

The thing I'd like changed most about the script is to put the user information on the top of the frame instead of way on the bottom, for easier accessibility to your favorites or account profile. The way it is now, I have to scroll to the bottom of the frame, then wait for the drop-down menu in accounts, which stretches the frame a little more then scroll down to select what I want.

Other than that though, I love the script and it makes viewing YouTube videos much more ... dynamic? ... for lack of a better word.

 
Douglas Adams User

Also two more things, please add support to prevent autoplay, cause the other scripts that do that, do not work with this, and could you make it so it is easier to see the title of the video?

 
Douglas Adams User

This is a really great script, one question, when I view the vids on regular youtube there is a link under them saying 'view in high quality' and I click the vid plays at a higher resolution, but when I use this script I don't see the link anywhere

 
MooGoo Script's Author

Oh my...comments. Sometimes I'm on top of updating this script and responding to comments, other times not so much...

Anyways, lets see:

  • Yea the cookie stuff is only for Opera and is apparently the only way to store data from user scripts since Opera has no separate functionality for that like Greasemonkey provides. I did not actually write those Opera functions in the script. Honestly I've not tested this script with Opera in awhile so I'm not even sure if it is still compatible. The biggest problem I had with Opera is that it seems to sometimes apply the userscript only after everything in the page has finished loading. On Youtube that includes buffering the entire video. Any feedback on results in Opera would be welcome.
  • That inexplicable horizontal scrollbar on the bottom of the sidebar appeared because the text box that shows the embed code was recently set to width="100%", making it always wider than the width of the sidebar because of extra margins and paddings and what not. I've fixed it in a not-yet-posted version of the script. If you are curious, it is at http://bigmooworld.com/youtube_googler.beta.use... but I cannot guarantee that this version is functional
  • I've noticed the extra wideness of the progress bar, but am not sure what to do about it really. Ideally if I could resize the video without resizing the entire player, the progress bar and controls could always take up as much space as possible while the video would be scaled freely. I have found no way to do this however. I noticed that white bar on the right as well. It is annoying. I believe if I change the attribute bgcolor to "#000000" on the embed tag, that white line will dissapear. In order to do this however, the tag must be removed and then re-inserted in order for the change in background color to actually be applied. This might delay the loading of the video in which case it is probably not worth it. I'll experiment with it.
  • Yes I have thought of applying this script to other video pages. The script--in theory at least-- is designed so it can be used with other video pages without much modification. The template object contains two properties; player and side. player contains the id or xpath to the embed or object tag that contains the video, side contains an array of id's or xpaths that identify all elements to be placed in the sidebar. Then of course a stylesheet should be made to accommodate the quirks of each site. So if you changed those variables and the stylesheet to values that would be appropriate for other video sites, it should work. If anyone wants to try, I'd be glad to give advice
  • The invertedness of the resizng thing must have been picked up from playing too many space and flight sim games with a joystick, somehow it felt more natural to me. It should be easy to reverse. Search for the line var newval = ((change - lastpos[1])/4) + curper; and change the minus sign to a plus. Now that you mentioned it, I might add an option in future versions.
  • I'll look into the timecode thing, had no idea about it...
  • And thanks for your comments and praise StrawTurkey, don't worry about harassing me, as you can see I do not check this page very consistently anyways. But it is nice to know that someone is using the script besides me.
  • To Daniel14duarte, it might be that the stylesheet for the portuguese page is slightly different than the english one, I'll look into it.

I'm slowly working on a newer version of the script to address some of the problems that have been brought up. You can test it here but it might be buggy. You can always reinstall the currently posted one.

 
StrawTurkey User

I want to say to Daniel14duarte, if you use "Ctrl +" or "Ctrl -" to make the font size larger or smaller, that may fix your problem.

And to MooGoo: YouTube has come up with a new deep-link to videos, to timecodes, such as http://www.youtube.com/watch?v=3HrSN7176XI#t=47s (yes, that is a Rick-Roll).

Another example is: http://www.youtube.com/watch?v=89FbCPzAsRA#t=1h...

Very handy in YouTube, now, (sort of), but it doesn't work in your script. -- I know, far be it for me to complain. Your script is still my favorite script of all time, and I'm on YouTube way too much now, but everything is much easier to watch.

Just wanted to make you aware of that new development.

 
Daniel14duarte User

Hey guy! the script have "bug" with the youtube in portuguese, i know you don't speak portuguese "fu** youtube in portuguese" uhsaushauhs
i don't speak english...(my englsih is very bad)
you have who saved me? :P the bug is it> (i don't understrand nothing of scripts :P) [URL=http://img100.imageshack.us/my.php?image=imagemgk5.gif][IMG]http://img100.imageshack.us/img100/9468/imagemg...]

in the top i "enlarger"(estico?) for < left - right > more the buttons not "1 - 2 - 3 - 4" in the center =/

 
StrawTurkey User

I just want to say, this is more versatile than anything else out there right now. You go to Google Video, and then suddenly, you're like, "I can't adjust the size of the video!" You go to Vimeo, and you're like, "I can't adjust the size of the video!"

They'd have a lot to gain, if they copied you. The left-right-up-down resizing is so simple but practical. Google wishes their's could do this.

Have you considered Googler'izing Google Videos now? I know it seems ironic, but it could benefit from that ability. -- But, tackling YouTube first has made a much larger< difference, both with the abundance of YouTube videos, and also the lame-ness of their default interface.

This is definitely my favorite GreaseMonkey plugin. :) Thanks again.

Edit: Hah, and, while I'm harassing you... Would there any way to configure it to do the zooming the opposite way? Bigger up, smaller down? -- I looked through the code, and it looked pretty difficult, but maybe (probably) you know some tips and tricks that I don't.

That part's not a huge deal, and I'm getting used to it, but I'd be curious to see it the other way.

 
StrawTurkey User
Messed around with it a little bit. Didn't mean to (appear to) doubt you. -- That actually is full-on awesome. :) And I understand about the Opera/cookies now. Don't have Opera to test it out, but that really doesn't matter. Works quite well in Firefox.

One thing is, most/all YouTube videos are 4:3 format, and that leads to really wide extra-wide play bars when using a wide-screen setting. In addition (not nitpicking!, just adding some feedback), it seems that xx% of the time, there will be a one-pixel-wide grey artifact to the right of the video. I'll make a screenshot of that.
Example:

But, all in all, I'm quite impressed by the ease you can rescale everything, and get rid of the sidebar if you need to. Very dynamic. -- Thanks for taking the time to do all of this.

Edit: Ooh, ooh! One more thing. -- I'm not sure what this would do in Opera, but, rather than "overflow: auto" in div#ovSide, you can use "overflow: -moz-scrollbars-vertical". I don't know what other ramifications this has, if any, but it gets rid of the inexplicably always-present scrollbar on the bottom-right side. :)
 
StrawTurkey User

So, pardon my curiosity, and I don't mean to suggest you're doing anything untoward, but is the document.cookie just to let it remember your current size settings? Is it only for Opera compatibility, or required for all uses? (Isn't there a way for Greasemonkey to remember certain settings?)

All in all, it seems great, I just want to keep doing a little more research. This is helping me understand the workings of Greasemonkey and JavaScript in general, also.

 
StrawTurkey User

You're awesome! I haven't checked out the new script yet, but I'm thrilled that you took the time to make it even better. :)

 
MooGoo Script's Author

Thanks for the tip StrawTurkey, the situation is even worse when viewing at 1920x1200. I guess I realized that this script makes the video too big given the crappy quality YouTube provides, I always just compensated by leaning far back in my chair.

Anyway, as you can see from the description I updated the script with the ability to change the video size to whatever suits you, along with the size of the sidebar.

And the search box is there as well. It was originally there, but every now and then it seems the YouTube devs like to randomly change element ids and classes for no reason, thus breaking the script. It's back for now...

And thanks to stupidhomer and doohdle123 as well, kind words are always appreciated!

 
StrawTurkey User
Hi there. I really like your script! It's been an eyesore viewing YouTube the way it normally is, especially at 1440x900 resolution (so tiny!). Now, due to that higher resolution, though, I find that your script makes the picture, basically, too huge.

I just wanted to let you know the way that I tweaked it around, to my liking. I don't know JavaScript very well, so this is about as unelegant as you get, but, it worked for me, it may work for somebody else.

Here is an example of what I've changed it to. It allows for a black background and a larger picture, but not so huge as to be "too" huge, and making the quality look bad:
http://img407.imageshack.us/img407/1165/googler...

What I did was:
div#ovVid {
	background: black;
	margin-right: 400px;
	height: 100%; 
	border-right: solid 1px #000;
	text-align: center;
   }
(added text-align:center), I will explain why, in a second.

And for "populate overlay," at the bottom, I changed it to:
 player.setAttribute('height', '510');
 player.setAttribute('width', '680');
 ovVid.appendChild(player);
Now, the weirdest part was this: I copied the "YouTube search" code, as HTML, and put it up at the top of the sidebar. You can verify the YouTube source to see that I didn't change anything (other than turn off the auto-complete thing):

var overlayhtml = '<div id="ovVid"><BR><BR><BR><BR><BR><BR><BR></div><div id="ovSide"><form action="/results" method="get" name="searchForm" onsubmit="return submitRegularSearchRequest()"><CENTER><BR><div id="search-form"><input input autocomplete="off" id="masthead-search-term" name="search_query" tabindex="1" value="" maxlength="128" type="text"><select class="search-type" name="search_type"><option value="">Videos</option><option value="search_users">Channels</option></select><input id="search-button" value="Search" type="submit"><BR><BR></center></form></div></div>'

And I also added < BR > < BR > etc. there to position it into the right place. I couldn't figure out the CSS for that. So, really, this will only look right on 1440x900, because it doesn't actually scale. If you make the window, say, 50%, it will go right into the sidebar, so, as I say, it's unelegant. But, to me, it's a good size for the YouTube viewer, and it's nice to have it on a black background.

Maybe you can figure out a way to make the code look/work better? But, either way, thanks for the script. It makes watching YouTube a much more pleasant experience, also because it keeps the comments way down at the bottom of the sidebar, so you only have to see them if you really want to. :)
 
stupidhomer User

Great script!

 
doohdle123 User

I love this script, thanks so much for updating!

 
MooGoo Script's Author

OMG Updates!!1

I finally got off my laziness and fixed this script. I'd like to say that I've been working on this update for the past 10 months, but I actually totally abandoned it up until about 2 hours ago. At that point I got some crazy idea that fixing this would not be nearly as hard as I originally thought. Too bad I did not have this revelation months ago, when people might have actually still been paying attention.

Have fun!

 
jack1455 User
This is sure very helpful. but you need to updated it...
Here is a YouTube Downloader which can help you download and convert YouTube, Google, Myspacetv, yahoo videos.
 
Desi User

I loved this script. Could you please update it?? THANKS SO MUCH IN ADVANCE FOR ALL YOUR HARD WORK!

 
wotan User

Thanks for the effort you put into it. It's very well appreciated

 
ploik User

please fix this script, it is the best one out there!

 
MooGoo Script's Author

Ah...it looks like YouTube has finally switched to their new and "improved" video layout.

The new layout is significantly different than the old (code wise at least), and thus I think this script will need a near total rewrite.

Because of that, I can't say when or even if this script will be working again any time soon. Sorry folks.

 
ZoretMan User

not working with any video here
try this http://www.youtube.com/watch?v=NiqjngtWyDE

 
MooGoo Script's Author

Done...and only took me 10 days! Yay.

Thanks for the tip.

Cross
Presentational HTML allowed.
Use <code> for inline code and <pre> for code blocks. Use &lt; and &gt; for literal < and >.
We help break paragraphs and link your links.
or cancel