Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <textarea cols="50" rows="5">
- // ==UserScript==
- // @name Youtube Cinema Size Enlarger
- // @namespace http://userscripts.org
- // @description Autoscrolls Youtube player to top and resize the video to a nice and
- //comfortable size.
- // @include http://*.youtube.*/*
- // @include http://youtube.*/*
- // @include https://*.youtube.*/*
- // @include https://youtube.*/*
- // ==/UserScript==
- var player=$("watch-player");
- function fitToWindow() {
- player.style.marginLeft = (window.innerWidth >= 960 ? (985 - window.innerWidth) / 2 :
- "0") + "px";
- player.style.width = (window.innerWidth-30) + "px";
- player.style.height = (window.innerHeight-50) + "px";
- $("watch-sidebar").style.marginTop = "1px";
- window.setTimeout(fitToWindow, 500);
- }
- function $(A) {
- return document.getElementById(A);
- }
- $("watch-headline-title").scrollIntoView(true);
- // old scroll $("watch-video-container").scrollIntoView(true);
- fitToWindow();
- GM_addStyle(".watch-wide-mode, #watch-player, #watch-player {padding-left:3px!important}");
- </textarea>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement