New Option: Only 720p - Fit/Shrink to Window
![]() ![]() |
Just a request, and maybe this is useless for most people, but..
My resolution is just slightly smaller, width wise, and as a result, the edges of true 720p videos get's cut off by the screen.
The reason this is better than normal "fit to screen" (which stretches all HD videos to screen size) is because some of us don't like seeing all videos in a stretched format, which can cause blurring or other ugliness.
Again, maybe this is redundant, or maybe I just don't have a proper understanding of these options, but I think this would be useful. Either way, just a suggestion. Thanks for a great script! Can't watch YouTube without it! |
![]() ![]() |
I never used True 720p because of this reason. Your post got me interested in solving the problem, so I did. I changed the code so if you check yes to Fit to Window and Big Mode, it will only go Fit to Window if it's HD. Everything else will stay in Big Mode. Here's what I changed.
to
|
![]() ![]() |
hmmm, Well that's not exactly what I meant, but it does do the job anyway.
BTW, with your edit, you don't need to enable Big Mode, as long as fit to window is enabled. Try it yourself. It's not just me, is it? One less option I need enabled, I guess. lol
|
![]() ![]() |
I don't like true720p either, but some people did, so I left it in as an option. If you've got a BIG ASS monitor, and I mean, you're packing a huge one, then it's a great feature. But most of us aren't that rich, yeah? It's all about choices-- so I left it in (but never use it, myself). |
![]() ![]() |
Yeah I understand that. I guess my problem was more with "Fit to Window" not working exactly the way I wanted/thought it should. Which isn't to say there's something actually wrong. Just personal preferences I guess. My monitor is almost big enough for full 720p videos, but that option was behaving oddly to me.
Anyway, thanks for a great script, I simply can't live without it! And your latest update is even better! Very nice loop-toggle button! |
![]() ![]() |
Thanks NikoKun! Glad you like my edit. I had always kept Big Mode on, so I never noticed that I could turn it off and it would still work. lol One thing that bugged me when I made my change was that normal videos wouldn't be centered on the screen anymore. Could be my OCD but I didn't like it. :) If you want to fix that here's what you need to do: Change:
function fitToWindow() {
player.style.marginLeft = (window.innerWidth >= 960 ? Math.floor((985 - window.innerWidth) / 2) : "0") + "px";
player.style.width = (window.innerWidth - 20 ) + "px";
player.style.height = (window.innerHeight - 53) + "px";
}
to function fitToWindow() {
player.style.marginLeft = (window.innerWidth >= 960 ? Math.floor((874 - window.innerWidth) / 2) : "0") + "px";
player.style.width = (window.innerWidth - 20 ) + "px";
player.style.height = (window.innerHeight - 53) + "px";
}
and if (opts.fit || opts.true720p)
GM_addStyle(".watch-wide-mode, #watch-this-vid, #watch-player-div {padding-left:0px!important}");
to if (opts.fit || opts.true720p)
GM_addStyle(".watch-wide-mode, #watch-this-vid, #watch-player-div {}");
Hope this helps! Now I just gotta figure out how to fix that stretched video issue. |
![]() ![]() |
Fixing up the sizing features right now, hopefully you guys will like it a lot :) |
![]() ![]() |
Thanks again BCBomb47. Yeah I noticed it wasn't centered, but I didn't mind that since it was still attached to the left margin in a way that looked youtube-like. lol
--
EDIT(even if you don't see this): Just upgraded to v1.1.3! Awesome job. Sizes seem to be working fine, at least for me, and I don't need to edit the script or anything anymore either!
|



