Resize YT To Window Size

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

אלו כל גרסאות הסקריפט הראה רק גרסאות בהן בוצע שינוי קוד

  • v139 21-05-2024

    Remove unused args

    Fix duplicate body in selector

  • v139 10-04-2024

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

  • v138 09-01-2024

    v138 - Bind toggle to keydown instead of keyup

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

  • v137 01-11-2023

    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

  • v136 30-08-2023

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

    Basically copied every rule containing ytd-watch-flexy.

  • v135 30-08-2023

    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)

  • v134 22-08-2023

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

  • v133 18-08-2023

    Correct the px value in comment and link to issue.

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

  • v132 29-06-2023

    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.
  • v131 11-03-2023 v131 - 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.
  • v130 19-04-2022 Add 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
  • v129 10-03-2022 v128 - Disable script when an unavailable video is detected Also remove some logging, v129 - Fix toggling theater mode (Issue #66) YouTube moved the button into the settings cog menu.
  • v127 05-04-2021 v127 - Resize the video faster by styling the `#player-wrap` element.
  • v126 05-04-2021 v126 - Fix scrollbar not being hidden in Chrome. Remove hidden Firefox scrollbar from description as it's no longer experimental.
  • v125 09-02-2021 v125 - Bind `w` key to toggle off script on current page. Prep ff ext.
  • v124 18-04-2020 Document enhancer-for-youtube support (Pull Request #51)
  • v124 18-04-2020 Fixed compatibility with "enhancer for youtube" pinned player doesn't get blown up now, Merge pull request #51 from cougarten/patch-1 Fixed compatibility with "enhancer for youtube"
  • v124 06-11-2019 Fix autogenerated gaming channel "live channels" page (Issue #46)
  • v123 24-06-2019 v123 - Support /user/pokemon/live url paths.
  • v122 30-01-2019 v122 - Add `html:not([fullscreen="true"])` to script selector Update most selectors since we prefixed the body selector with html tag selectors.
  • v121 18-11-2018 v121 - Fix miniplayer video getting positioned offscreen. Add the Firefox scrollbar tweak in the suggestions.
  • v120 13-11-2018 Show error screen if video can't load., v120 - Add experimental support for hiding scrollbar in Firefox v63.
  • v119 22-08-2018 OpenUserJS requires a license header
  • v119 22-08-2018 Fix 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
  • v118 20-05-2018 v118 - Fixup ytd-watch => ytd-watch-flexy interface.
  • v117 21-04-2018 v117 - Slightly fix the playlist area positioning in the old youtube layout.
  • v116 19-04-2018 Cleanup 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
  • v115 08-12-2017 v115 - Fix script not loading error when the page has only loaded halfway.
  • v114 08-12-2017 v114 * Use !important to fix compatibility with Youtube+ on the old Youtube layout.
  • v113 05-12-2017 use playerHeight variable
  • v113 05-12-2017 v113 Fix the autocomplete popup when the video is still visible. Remove the html5 patch code too.
  • v112 03-12-2017 v112 * 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.
  • v111 10-11-2017 v111 * Constantly attempt to enter Theater mode every second if we don't enter it right away. * Support entering theater mode in the old layout.
  • v110 06-10-2017 Click 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.
  • v109 19-09-2017 Imported from URL
  • v107 31-08-2017 v107 - Fix videos on channel pages when first visiting a video page.
  • v106 04-07-2017 v106 - 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.
  • v105 29-06-2017 v105 - Fix update loop not starting.
  • v104 27-06-2017 v104 - Don't start another fix loop when one is in progress.
  • v103 27-06-2017 v103 - Reattempt fix 10 more times on page load (shit solution but it works)
  • v102 19-06-2017 Imported from URL
  • v101 11-05-2017 Forgot to prefix the ytwp. in front of the doMonkeyPatch call, v101 Finish the last regex for applying the control bar fix on page load, control bar should now work in firefox.
  • v100 11-05-2017 Patch window._yt_player.WU (or .VU on firefox) to get the app instance
  • v99 10-05-2017 v99
  • v98 09-05-2017 Commit the new ...Application.create() function so we can check later, v98 Quick 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.
  • v96 25-04-2017 v96 - Fix Material UI bug. Don't use pubsub anymore since Material UI keeps fucking around with it's API. Just use a periodic timer., @grant none
  • v95 16-04-2017 v95 - 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.
  • v94 15-04-2017 Imported from URL
  • v92 21-03-2017 Synced 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.
  • v91 04-03-2017 Synced from GitHub - v91 - Update CSS for new version of the Material design layout Material 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