- The
w
key will toggle the script in the current tab. - Use Resize Video To Window Size for Crunchyroll, Vimeo, and a few other sites.
After loading the video webpage you will see:
It appears above the rest of the site, so you can scroll down for the description, related links, etc.
https://github.com/Zren/ResizeYoutubePlayerToWindowSize/blob/master/changelog.md
- Bind toggle to
keydown
instead ofkeyup
so that pressingCtrl+W
to close a tab does not trigger the YTWP toggle when you focus on a Youtube tab.
- Bind to
yt-page-data-fetched
andyt-navigate-finish
to fix the back button not cleaning up the window view sinceyt-navigate-start
does not always fire (Issue #72 and #76) - Bind
keyup
notkeypress
(which is deprecated). Also cancel event duringkeydown
. This fixes thew
key also changing the caption box style. It should also fix changing the toggle key toEscape
(Issue #71)
- Fix page top margin as certain elements seem to ignore the CSS properties completely (Issue #88)