Youtube - description on the right side above related videos

Description on the right side with avatar and channel name

< 腳本Youtube - description on the right side above related videos的回應

評論:普通 - 腳本能使用,但有一些問題

§
發表於:2022-08-21
編輯:2022-08-21

Really like this script! Minor complain I have is that on some videos "SHOW MORE" and "SHOW LESS" Buttons are shown even though they do nothing and the "...MORE" button is what you actually use. It would be nice to fix this minor issue :)

barn852作者
§
發表於:2022-08-21

Thanks for the screenshot, without it I wouldn't understand. I was not able to reproduce your problem, I have tried on FF both on Tampermonkey and Violentmonkey. Could you pls send me some link where this occurs?
Also I am wondering why you have that chip bar above the videos, I have never seen chip bar above the related section.

§
發表於:2022-08-22

Hi barn852. The issue seems to randomly occur. Sometimes when I click on videos those buttons appear but other times it just seemingly does not appear for any reason. This is the HTML for when the issue occurs;

§
發表於:2022-08-22
編輯:2022-08-22

I went back to that exact youtube video (https://youtu.be/-55M_CXgAUw)and the issue occured then I refreshed the page and it fixed itself but then I come back after a while and it is back. Is there a way to make a script that trys to permenantly hide these broken elements ?

barn852作者
§
發表於:2022-08-22
編輯:2022-08-22

It's weird. I don't have such classes, I have not seen any starting with "desc_" neither now nor before. Do you have some other script that might injects those?
Actually I have just received today an other comment reporting an uncommon behaviour https://gf.qytechs.cn/en/scripts/429371-youtube-toggle-related-button/discussions/145492

If you want to eliminate them for sure, you can add a new script like below, and if it makes a mess later, you just disable it.

// ==UserScript==
// @name            Youtube - hide desc_toggles
// @namespace       Violentmonkey Scripts
// @match           *://*.youtube.com/*
// @grant           GM_addStyle
// @version         1.0
// @author          George Tarr
// @description     6/18/2021, 2:24:57 AM
// @run-at          document-end
// ==/UserScript==

GM_addStyle(`
  #meta-contents div.desc_toggles { display: none !important; }
`);

or simple hide it with ublock (careful with the selection, not to hide other elements), much better concerning the performance. Sorry, I don't have better idea now.

發表回覆

登入以回復

QingJ © 2025

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