Skip to content

Instantly share code, notes, and snippets.

@autokludge
Last active December 12, 2015 04:29
Show Gist options
  • Save autokludge/4714990 to your computer and use it in GitHub Desktop.
Save autokludge/4714990 to your computer and use it in GitHub Desktop.
full width videos for youtube watch page (change height value for wider screens, 760 works well for 1280 wide screens)
// ==UserScript==
// @name Youtube Resize
// @namespace http://speilberg0.github.com
// @version 0.2
// @description make wide youtube full width
// @match http*://www.youtube.com/watch*
// @copyright 2012+, Speilberg0
// ==/UserScript==
st = document.createElement('style');
st.textContent = '#watch7-container.watch-medium #watch7-video-container {padding-left :0 !important;}\
#watch7-container.watch-medium #watch7-video {width:inherit !important;}\
#watch7-container.watch-medium #watch7-video #watch7-player {width:inherit !important; height:100%;}';
document.body.appendChild(st);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment