返回首頁 

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.

Ниже показаны версии этого скрипта, в которых изменялся код. Показать все версии.

  • вер. 13921.05.2024

    Remove unused args

    Fix duplicate body in selector

  • вер. 13910.04.2024

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

  • вер. 13809.01.2024

    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.

  • вер. 13701.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

  • вер. 13630.08.2023

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

    Basically copied every rule containing ytd-watch-flexy.

  • вер. 13530.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)

  • вер. 13422.08.2023

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

  • вер. 13318.08.2023

    Correct the px value in comment and link to issue.

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

  • вер. 13229.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.
  • вер. 13111.03.2023v131 - 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.
  • вер. 13019.04.2022Add 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
  • вер. 12910.03.2022v128 - 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.
  • вер. 12705.04.2021v127 - Resize the video faster by styling the `#player-wrap` element.
  • вер. 12605.04.2021v126 - Fix scrollbar not being hidden in Chrome.Remove hidden Firefox scrollbar from description as it's no longerexperimental.
  • вер. 12509.02.2021v125 - Bind `w` key to toggle off script on current page. Prep ff ext.
  • вер. 12418.04.2020Document enhancer-for-youtube support (Pull Request #51)
  • вер. 12418.04.2020Fixed 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"
  • вер. 12406.11.2019Fix autogenerated gaming channel "live channels" page (Issue #46)
  • вер. 12324.06.2019v123 - Support /user/pokemon/live url paths.
  • вер. 12230.01.2019v122 - Add `html:not([fullscreen="true"])` to script selectorUpdate most selectors since we prefixed the body selector with htmltag selectors.
  • вер. 12118.11.2018v121 - Fix miniplayer video getting positioned offscreen.Add the Firefox scrollbar tweak in the suggestions.
  • вер. 12013.11.2018Show error screen if video can't load., v120 - Add experimental support for hiding scrollbar in Firefox v63.
  • вер. 11922.08.2018OpenUserJS requires a license header
  • вер. 11922.08.2018Fix 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
  • вер. 11820.05.2018v118 - Fixup ytd-watch => ytd-watch-flexy interface.
  • вер. 11721.04.2018v117 - Slightly fix the playlist area positioning in the old youtube layout.
  • вер. 11619.04.2018Cleanup 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
  • вер. 11508.12.2017v115 - Fix script not loading error when the page has only loaded halfway.
  • вер. 11408.12.2017v114* Use !important to fix compatibility with Youtube+ on the old Youtube layout.
  • вер. 11305.12.2017use playerHeight variable
  • вер. 11305.12.2017v113Fix the autocomplete popup when the video is still visible.Remove the html5 patch code too.
  • вер. 11203.12.2017v112* 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.
  • вер. 11110.11.2017v111* Constantly attempt to enter Theater mode every second if we don't enter it right away.* Support entering theater mode in the old layout.
  • вер. 11006.10.2017Click 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.
  • вер. 10919.09.2017Imported from URL
  • вер. 10731.08.2017v107 - Fix videos on channel pages when first visiting a video page.
  • вер. 10604.07.2017v106 - 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.
  • вер. 10529.06.2017v105 - Fix update loop not starting.
  • вер. 10427.06.2017v104 - Don't start another fix loop when one is in progress.
  • вер. 10327.06.2017v103 - Reattempt fix 10 more times on page load(shit solution but it works)
  • вер. 10219.06.2017Imported from URL
  • вер. 10111.05.2017Forgot 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.
  • вер. 10011.05.2017Patch window._yt_player.WU (or .VU on firefox) to get the app instance
  • вер. 9910.05.2017v99
  • вер. 9809.05.2017Commit 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.
  • вер. 9625.04.2017v96 - 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
  • вер. 9516.04.2017v95 - 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.
  • вер. 9415.04.2017Imported from URL
  • вер. 9221.03.2017Synced 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.
  • вер. 9104.03.2017Synced 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.

Показать все версии скрипта