Greasy Fork

Greasy Fork is available in English.

Resize YT To Window Size

Moves the YouTube video to the top of the website and fill the window with the video player.

< 脚本 Resize YT To Window Size 的反馈

评价:好评 - 脚本运行良好

PJ
§
发布于:2016-12-03

Ultrawide support?

Hi - I've been using this script forever and I love it, but a question - is there a way I can make the videos fit my ultrawide monitor?

Thank you for your work.

Zren作者
§
发布于:2016-12-03

What resolution + dpi is ultrawide?

Zren作者
§
发布于:2016-12-03
编辑于:2016-12-03

I tried 2560x1080

Zren作者
§
发布于:2016-12-03

Yeah, I've no idea what res would trigger this "ultrawide".

Can you take a screenshot showing what's not working?

PJ
§
发布于:2016-12-03
编辑于:2016-12-03

Sorry, I should have been more specific.

Videos work fine, but I was wondering if they can be stretched to the edges of the monitor with this script?

My resolution is 2560x1080, I just wasn't sure if videos could be pulled across the black bars, although it would mess with the aspect ratio.

It would be 81~ PPI I think.

Here's a screenshot of what mine looks like, similar to yours.

http://i.imgur.com/aGLYywA.png

Thank you again.

Zren作者
§
发布于:2016-12-03

I don't think you can easily skew the video element. Video tags will keep their aspect ratio when resized. A CSS transform might work, but you'd need to know the videos resolution to scale it properly (eg: stretch width 1.3x).

In any case I wouldn't add it to the script.

PJ
§
发布于:2016-12-04
编辑于:2016-12-04

Gotcha, thanks again.

发布留言

登录以发布留言。