Resize YT To Window Size

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

< Feedback on Resize YT To Window Size

Review: Good - script works

§
Posted: 2016-07-06

Compatible with "Simple YouTube MP3 Button" ?

When I click the Download MP3 button just collapse and nothing happens

Simple YouTube MP3 Button->https://greasyfork.org/scripts/20015

§
Posted: 2016-07-07

I checked the issue out.
The solution is to limit the script and only have it run on YouTube video pages.

For example:
@match *://www.youtube.com/watch?v=*

ZrenAuthor
§
Posted: 2016-07-07

That will not work with Youtube @Arari since Youtube uses ajax based page loading after the first page is loaded. So a script with that rule would not load on the homepage, nor would it be loaded when a user clicks on a video link.

Your script doesn't work because of this rule: body.ytwp-window-player { margin-top: 100vh; } which moves the button down and out of view in the iframe. This is something I have to fix since apparently my script is running in iframes of other domains when the top level matches. Bleh.

ZrenAuthor
§
Posted: 2016-07-07

Fixed in v84

§
Posted: 2016-07-08
Edited: 2016-07-08

@Zren @Arari
Yeeeeeeeeeeees they work!!!
Thaaaank you both for your great job,I really really love your scripts

§
Posted: 2016-07-08

@Zren - awesome to see that you fixed the issue.
You're right about that indeed, but you can catch those updates with JS (although the include method is much easier).

Post reply

Sign in to post a reply.