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.

  • v90 13/02/2017 Synced from GitHub - Update the description with the keyword "fill". - Apply script on /shared? URLs.
  • v89 25/01/2017 Synced from GitHub - v89 * Hide the scrollbar on video pages (webkit browsers). * No longer promote Stylish to hide scrollbars now that the extension spies on you by default. - Do not promote userstyles.org The extension Stylish now tracks users by default.
  • v88 26/10/2016 Synced from GitHub - v88 - Add support for the Material Design UI experiment.
  • v87 03/09/2016 Synced from GitHub - v87 - Redo the previous fix since it caused problems.
  • v86 03/09/2016 Synced from GitHub - Override leftover element.style.height when closing the share widget. - Remove jQuery.addClass/removeClass and use el.classList.add/remove.
  • v85 15/07/2016 Synced from GitHub - v85 - Fix seekbar fix regex.
  • v84 07/07/2016 Synced from GitHub - v84 - Don't run in iframe, and fix videos on channels.
  • v83 27/03/2016 Synced from GitHub - 83 - Force width to 100% on the `#player-api` element to fix compatibility with Youtube+.
  • v82 02/03/2016 Synced from GitHub - v82 - Fix the autoplaying video on channels.
  • v81 20/02/2016 Synced from GitHub - v80 - Tempfix the player ui not resizing before being clicked. - v81 - Proper fix for the player ui not resizing before being clicked.
  • v80 20/02/2016
  • v79 16/02/2016 Synced from GitHub - v79 - tempfix control resize and target body[data-spf-name="watch"] * Tempfix the player ui not resizing before being clicked. * Stop duplicating the stylesheet every page. * Target `body[data-spf-name="watch"]` if spf is enabled so the player remains the same size when changing video.
  • v78 18/01/2016 Synced from GitHub - v78 - Fix a few errors.
  • v77 25/12/2015 Synced from GitHub - v77 - Fix the autoplay UI not being shown.
  • v76 24/12/2015 Synced from GitHub - v76 - Fix seekbar after several videos and fully compat with YT+ * Cleanup cached varibles when changing pages. Should fix the seekbar width breaking after a few videos. * Make compatible with Youtube+'s "Player always visible when reading comments" feature.
  • v75 20/12/2015 Synced from GitHub - v75 - Trigger resizing the player controls after patching it's size function.
  • v74 17/12/2015 Synced from GitHub - v74 - Fix the Skip Ad UI getting hidden.
  • v73 13/12/2015 Synced from GitHub - v73 - Reenable the html5 seekbar fix since apparently the problem is unrelated to my script.
  • v72 13/12/2015 Synced from GitHub - v72 - Fix playlist widget overlaying sidebar. Disable the html5 seekbar fix (for now). My technique appears to break everything (comment loading/autoplay/buttons) on occasion.
  • v71 24/11/2015 Synced from GitHub - Don't use hardcoded variable in getPlayerInstances (leftover from debugging probably). - Use the uw variable so the script can be pasted into the console. - v71 - Fix html5 seekbar Remove some old stuff from description.
  • v70 19/08/2015 Synced from GitHub - v70 - Fix playlist overlaying the rest of the sidebar and the video description when using Youtube+.
  • v69 26/07/2015 Synced from GitHub - v69 - Make script slightly compatible with Youtube+ after clicking another video. Also wrap the html5 fix code in case other scripts replace the entire player. Also use the for in loop instead of a Object.keys().forEach on the inner loop in case that ever breaks.
  • v68 20/06/2015 Synced from GitHub - v68 - Update HTML5 fix for the old player. `Objects.keys(obj.constructor.prototype)` was skipping the property, so used `for (var k in obj){}`. Also made debugging the html5 player easier.
  • v67 17/06/2015 Synced from GitHub - v67 - Make script slightly compatible with Youtube+
  • v66 14/06/2015 Synced from GitHub - v66 - Fix player offset when the window is really small. Fix #13
  • v65 28/05/2015 Synced from GitHub - v65 - Update HTML5 fix for old player.
  • v64 08/05/2015 Synced from GitHub - v64 - fix masthead transition. fix hidden playlist widget.
  • v63 06/05/2015 Synced from GitHub - v63 - Update HTML5 fix. Remove transition on the masthead.
  • v62 06/05/2015 Synced from GitHub - v62 - Fix the height on new `.html5-video-container` element.
  • v61 30/04/2015 Synced from GitHub - v61 - Update HTML5 fix. Change @description a bit.
  • v60 29/04/2015 Synced from GitHub - v60 - Prevent offset on `.player-api` when in theater mode.
  • v59 29/04/2015 Synced from GitHub - v59 - Update HTML5 fix regexes to use a proper (ascii) variable name detection pattern.
  • v58 29/04/2015 Synced from GitHub - v58 - Hide the #placeholder-player element.
  • v57 17/03/2015 Synced from GitHub - v57 - Update HTML5 fix regexes. Minor code cleanup.
  • v56 03/03/2015 Synced from GitHub - v56 - Update HTML5 fix regexes.
  • v55 25/02/2015 Imported from URL
  • v54 24/02/2015 Synced from GitHub - v54 - Get ytwp.ytapp using the private static list variable. * Fix double audio bug after clicking a video on the homepage/search page. * No longer reloading the html5 player to get the `playerInstance`. We are instead creating an unused dummy `playerInstance` to get the reference to it's constructor, which has a static list of the list of active `playerInstances`. * Reattempt to subscribe to `pubsub` events 1 second later if we get an error.
  • v53 13/02/2015 Imported from URL
  • v52 30/01/2015 Imported from URL
  • v1.51 29/01/2015 Imported from URL
  • v1.50 25/01/2015 Imported from URL
  • v1.49 09/01/2015 Imported from URL
  • v1.48 20/12/2014 Imported from URL
  • v1.47 11/12/2014
  • v1.46 27/11/2014 Imported from URL
  • v1.45 13/11/2014
  • v1.44 31/10/2014
  • v1.43 31/10/2014
  • v1.42 18/08/2014 Imported from URL
  • v1.41 11/08/2014 Imported from URL

Show all script versions