Youtube - right side description with toggle button

Relocates the description to the right side and creates a button on the header to toggle with related videos

< 脚本 Youtube - right side description with toggle button 的反馈

评价:好评 - 脚本运行良好

§
发布于:2022-08-02
编辑于:2022-08-02

Very good script and it also works if you scroll down a fullscreen video. It would be even better if the comment section is also included below the description or an option to add it below, and the button directly above the description instead of it being in the header of the page.

barn852作者
§
发布于:2022-08-13

Thanks @Høly Spirit, I'm happy to get a divine feedback :) For me the comments are completely eliminated, but it's possible to make a version with comments below the description. I will try to make it later. Or maybe I will make the toggle button work in 3 stages: description -> related vids -> comments -> ... Let's pray for it.

§
发布于:2022-08-14
编辑于:2022-08-14

It would be better if the video stays and only the desc with the comments/the related videos are the ones scrollable. But if it isn't possible, it's okay. Maybe I can find or create a workaround myself. Thanks in advance.

barn852作者
§
发布于:2022-08-14

On my laptop I also fix the player, exactly as you suggested above, but as I mentioned, for me comments are eliminated. Just create a new script like this:

// ==UserScript==
// @name        Youtube player fixed position for Høly Spirit
// @match       *://*.youtube.com/*
// @grant       GM_addStyle
// @version     1.0
// @run-at      document-end
// ==/UserScript==

GM_addStyle(`
  #primary-inner { 
    position: fixed !important; 
    width: calc(var(--ytd-watch-flexy-max-player-height) * (16 / 9)) !important; 
  }
`);

However it's not a perfect solution, you will see if you use it for a while. Also cinema mode (dark surroundings) does not work.

§
发布于:2022-08-17
编辑于:2022-08-17

@barn, I found a solution to fix the position of the player.

// ==UserScript==
// @name        Youtube player fixed position for Høly Spirit (v2)
// @match       *://*.youtube.com/*
// @grant       GM_addStyle
// @version     1.0
// @run-at      document-end
// ==/UserScript==

GM_addStyle(`
  body {
  overflow: hidden; /* Hide scrollbars */
  }
  #secondary {
  max-height:calc( (var(--ytd-watch-flexy-max-player-width) * (9/16)) + 10vh) !important;
  overflow: auto !important;
  }
`);
§
发布于:2022-08-17

A better one using a bad way of hiding the scrollbar.

GM_addStyle(`
  body {
    overflow: hidden; /* Hide scrollbars */
  }
  #secondary {
    max-height:calc( (var(--ytd-watch-flexy-max-player-width) * (9/16)) + 10vh) !important;
    overflow-y: auto !important;
  }
  ::-webkit-scrollbar {
    width: 10px;
  }
`);
barn852作者
§
发布于:2022-08-18

Thanks. Not that 'bad'... gonna use it for a while if everything ok with it.

发布留言

登录(不可用)以发布留言。

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址