YouTube Sizer

Resizes the YouTube player to different sizes

Има други версии на този скрипт, където кодът е обновен. Покажи всички версии.

  • v2.03 24.01.2026

    Corrected Name

  • v2.02 24.01.2026

    Updated the script to allow the resize button to work with the newer interface.

  • v2.01 31.05.2025

    Refactored code for the button logic.

  • v2.00 31.05.2025

    Fixed some commented code

  • v1.99 31.05.2025

    Fixed the tooltip and added more size customization.

  • v1.98 06.08.2024

    Fixed a bug with trusted types policy for firefox.

  • v1.97 06.08.2024

    Fixed bug with trusted types policy.

  • v1.96 10.11.2023

    Updated the description.

  • v1.95 10.11.2023
  • v1.94 09.11.2023
  • v1.93 09.11.2023

    Added a fix for the Firefox web browser.

  • v1.92 09.11.2023

    Added a @supportURL in the script header.

  • v1.91 09.11.2023

    Fixed a possible bug with the maxWidth setting.

  • v1.90 31.10.2023

    Fixed a bug in the code on sizing.

  • v1.89 31.10.2023

    Minor bug fixes.

  • v1.88 31.10.2023

    Fixed a bug.

  • v1.87 31.10.2023

    Added some code fixes for video size.

  • v1.86 31.10.2023

    Fixed a few bugs.

  • v1.85 31.10.2023
  • v1.84 31.10.2023
  • v1.83 18.04.2023

    Cleaned up some of the logic in the resizeObserver and removed the transitionend event handler.

  • v1.82 18.04.2023

    Fixed a bug related to the keydown event.

  • v1.81 18.04.2023

    Updated the maxWidth variable to be more accurate.

  • v1.80 17.04.2023

    Updated the icon of the script.

  • v1.79 17.04.2023

    Updated the event listener for keydown.

  • v1.78 17.04.2023

    Cleaned up some more logic in the load functions of the code.

  • v1.77 17.04.2023

    Simplified the loading of the code.

  • v1.76 17.04.2023

    Code clean up.

  • v1.75 16.04.2023

    Added the PageObserver function to check when the page changes.

  • v1.74 16.04.2023

    Updated to using a MutationObserver vs setInterval for finding the player container outer.

  • v1.73 15.04.2023

    Updated an event handler for creating the resize of the video container.

  • v1.72 15.04.2023

    Updated some of the code to run in proper sequence.

  • v1.71 15.04.2023

    Cleaned up the startMethods function.

  • v1.70 15.04.2023

    Fixed loading bug in the code.

  • v1.69 15.04.2023

    Updated the loading functions of the script.

  • v1.68 14.04.2023

    Created more code to check if the script is loaded correctly.

  • v1.67 14.04.2023

    Updated the way the script is loaded on the web page.

  • v1.66 14.04.2023

    Added a checkUrl function.

  • v1.65 14.04.2023

    Cleaned up code in the viewInterval function.

  • v1.64 14.04.2023

    Clean up more code and removed isInViewPort function.

  • v1.63 13.04.2023

    Bug fixes.

  • v1.62 13.04.2023

    Updated the createResize function code.

  • v1.61 13.04.2023

    Added a work around for a bug for the time being.

  • v1.60 13.04.2023

    Fixed bug from previous version.

  • v1.59 13.04.2023

    Updated the code when going to a YouTube page directly.

  • v1.58 13.04.2023

    Added code for the script to run when directly loading a YouTube video.

  • v1.57 12.04.2023

    Updated the event handler from "yt-navigate-finish" to "yt-navigate" for faster loading of the script.

  • v1.56 12.04.2023

    Updated the button tool tip text and updated the preview picture.

  • v1.55 12.04.2023

    Updated the preview image and the button icons.

  • v1.54 12.04.2023

    A little clean up with the SVG path variables and other variables.

  • v1.53 12.04.2023

    A lot of code clean up and simplification of the loading of the script.

  • v1.52 11.04.2023

    Updated the viewInterval function logic to allow for vertical videos.

  • v1.51 11.04.2023

    Major changes to the code to simplify many of the functions.

  • v1.50 11.04.2023

    Fixed a bug in the size of the video container.

  • v1.49 11.04.2023

    Created a fix for the incomplete bug fix to the previous bug.

  • v1.48 11.04.2023

    Fixed a bug in the code of #small-player being added two times on page load.

  • v1.47 10.04.2023

    Updated some of the event handler code.

  • v1.46 10.04.2023

    Cleaned up more legacy code.

  • v1.45 09.04.2023

    Updated the preview picture.

  • v1.44 09.04.2023

    Created new buttons for the default view and the resized view.

  • v1.43 09.04.2023

    Removed the injectJS function since it was not needed.

  • v1.42 06.04.2023

    Fixed a bug in the save size settings.

  • v1.41 06.04.2023

    Did some code clean up for this version.

  • v1.40 06.04.2023

    Fixed a bug in the code when refactoring the CSS.

  • v1.39 06.04.2023

    Cleaned up some variable names and other code fixes.

  • v1.37 05.04.2023

    Updated more code.

  • v1.36 05.04.2023

    Refactored and updated the tooltip button function.

  • v1.35 05.04.2023

    Updated and refactored some of the functions.

  • v1.34 30.08.2022

    Fixed location of button behind full-screen button.

  • v1.33 09.02.2021
  • v1.32 09.02.2021 Fixed spelling mistakes.
  • v1.31 09.02.2021 Fixed spelling mistakes and updated description.
  • v1.30 07.02.2021