返回首頁 

Resize YT To Window Size

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

These are versions of this script where the code was updated. Show all versions.

  • v1392024-05-21

    Remove unused args

    Fix duplicate body in selector

  • v1392024-04-10

    v139 - Fix page top margin as some CSS properties are ignored (#88)

  • v1382024-01-09

    v138 - Bind toggle to keydown instead of keyup

    so that pressing Ctrl+W to close a tab does not trigger the YTWPtoggle when you then focus on a Youtube tab.

  • v1372023-11-01

    Bind keyup not keypress. Also cancel event for keydown. Fix #71

    Bind to yt-page-data-fetched and yt-navigate-finish (Issue #72 + #76)

    v137 - Fix back button Issue #72 + #76, and w keybinding Issue #71

  • v1362023-08-30

    v136 - Attempt to fix ytd-watch-grid papercuts (Issue #81)

    Basically copied every rule containing ytd-watch-flexy.

  • v1352023-08-30

    Add a ytwp.debugPage function for debugging youtube changes

    Add check to see if the page has changed. If so, print debug.

    v135 - Attempt to fix ytd-watch-grid (Issue #81)

  • v1342023-08-22

    v134 - Fix container getting shifted again (Issue #79) Thanks @Vamael.

  • v1332023-08-18

    Correct the px value in comment and link to issue.

    v133 - Fix container getting shifted (Issue #79) Thanks @Vamael.

  • v1322023-06-29

    v132 - Fix video container getting shifted after YT update (Issue #77)

    • Fix nav moving around when guide is open.
    • Added bgcolor=black to #movie_player so it looks better in light mode.
  • v1312023-03-11v131 - Fix theater mode toggle, and change URL detection events.Fix theater mode toggle. ytd-watch-flexy DOM is weird. (#75)Listen for yt-navigate-start and yt-navigate-finish events.
  • v1302022-04-19Add quick boolean toggle for enableOnLoad (Issue #67 and #69), Fix video cropping caused by object-fit:cover (Issue #70)Also fix splash thumbnail cropping when not autoplaying., Expose script toggle keybinding as it'll need to change (Issue #71), v130 - Fix video crop, add settings for toggle key + enable on load
  • v1292022-03-10v128 - Disable script when an unavailable video is detectedAlso remove some logging, v129 - Fix toggling theater mode (Issue #66)YouTube moved the button into the settings cog menu.
  • v1272021-04-05v127 - Resize the video faster by styling the `#player-wrap` element.
  • v1262021-04-05v126 - Fix scrollbar not being hidden in Chrome.Remove hidden Firefox scrollbar from description as it's no longerexperimental.
  • v1252021-02-09v125 - Bind `w` key to toggle off script on current page. Prep ff ext.
  • v1242020-04-18Document enhancer-for-youtube support (Pull Request #51)
  • v1242020-04-18Fixed compatibility with "enhancer for youtube"pinned player doesn't get blown up now, Merge pull request #51 from cougarten/patch-1Fixed compatibility with "enhancer for youtube"
  • v1242019-11-06Fix autogenerated gaming channel "live channels" page (Issue #46)
  • v1232019-06-24v123 - Support /user/pokemon/live url paths.
  • v1222019-01-30v122 - Add `html:not([fullscreen="true"])` to script selectorUpdate most selectors since we prefixed the body selector with htmltag selectors.
  • v1212018-11-18v121 - Fix miniplayer video getting positioned offscreen.Add the Firefox scrollbar tweak in the suggestions.
  • v1202018-11-13Show error screen if video can't load., v120 - Add experimental support for hiding scrollbar in Firefox v63.
  • v1192018-08-22OpenUserJS requires a license header
  • v1192018-08-22Fix player height when miniplayer is active in the flexy layout.Bug noticed when testing with Iridium in firefox., Make sure the thumbnail shows up when the autoplay is disabled.Easiest way to test is with Iridium.See issue #41, v119
  • v1182018-05-20v118 - Fixup ytd-watch => ytd-watch-flexy interface.
  • v1172018-04-21v117 - Slightly fix the playlist area positioning in the old youtube layout.
  • v1162018-04-19Cleanup unused addClass functions (no need with el.classList.add), Use a 32px icon since the 16px icon is too small in most GUIs.Issue #34 from GitHub, Support YouTube's new MiniPlayer Bar.Fixes issue #36 from GitHub., v116, quick fix, don't static postion the miniplay-bar-renderer, v116: also don't use unsafeWindow as firefox isn't triggering onScroll
  • v1152017-12-08v115 - Fix script not loading error when the page has only loaded halfway.
  • v1142017-12-08v114* Use !important to fix compatibility with Youtube+ on the old Youtube layout.
  • v1132017-12-05use playerHeight variable
  • v1132017-12-05v113Fix the autocomplete popup when the video is still visible.Remove the html5 patch code too.
  • v1122017-12-03v112* Fix the positioning of the search box's autocomplete popup (it was previously hidden).* Attempt to cleanup the player every 2.5sec instead of every 1sec, as well as the first 150 frames on page load.
  • v1112017-11-10v111* Constantly attempt to enter Theater mode every second if we don't enter it right away.* Support entering theater mode in the old layout.
  • v1102017-10-06Click to focus on video on page transition., Support Youtube+'s rewrite (Iridium) for the Material design layout., v110 - Focus on video on page load. Support Iridium.
  • v1092017-09-19Imported from URL
  • v1072017-08-31v107 - Fix videos on channel pages when first visiting a video page.
  • v1062017-07-04v106 - Enable script on `/c/ChannelName/live` and `/channel/ChannelId/live` pages.Refactor ytwp.util.isWatchUrl to ytwp.isWatchUrl.Fix declaration of ytwp.watchPage. We assign/cache to ytwp.isWatchPage.
  • v1052017-06-29v105 - Fix update loop not starting.
  • v1042017-06-27v104 - Don't start another fix loop when one is in progress.
  • v1032017-06-27v103 - Reattempt fix 10 more times on page load(shit solution but it works)
  • v1022017-06-19Imported from URL
  • v1012017-05-11Forgot to prefix the ytwp. in front of the doMonkeyPatch call, v101Finish the last regex for applying the control bar fix on page load, control bar should now work in firefox.
  • v1002017-05-11Patch window._yt_player.WU (or .VU on firefox) to get the app instance
  • v992017-05-10v99
  • v982017-05-09Commit the new ...Application.create() function so we can check later, v98Quick update for the control bar monkey patch.We need to reinit the player so it's slightly slower than normal.Unfortunately the list of players isn't exposed anymore.
  • v962017-04-25v96 - Fix Material UI bug.Don't use pubsub anymore since Material UI keeps ####ing around with it's API. Just use a periodic timer., @grant none
  • v952017-04-16v95 - TempFix for detecting page transition for the Material UI.Check the URL every 500ms and see if it's changed.A proper fix will come when I find a better solution.
  • v942017-04-15Imported from URL
  • v922017-03-21Synced from GitHub - Fix top alignment of contents of material page - instance_ no longer exists, subscribe is public now though. - pubsub2 subscribe was also moved - v92* Fix content positioning in the Material Design css.* Fix some error spam caused by the pubsub/pubsub2 subscribe() function getting moved.
  • v912017-03-04Synced from GitHub - v91 - Update CSS for new version of the Material design layoutMaterial design layout can be toggle by adding &f6=4 to the PREFS cookie as mentioned here:https://www.reddit.com/r/youtube/comments/4yin6w/force_the_new_material_layout_when_logged_in/ - The note is useless.

Show all script versions