YouTube - Proper Description

Watch page description below the video with proper open/close toggle, instead of a side bar.

< 脚本 YouTube - Proper Description 的反馈

评价:一般 - 脚本能用,但还有一些问题

§
发布于:2023-08-27
编辑于:2023-08-27

After the 2.0 rewrite, this breaks on members only videos where there's no bullet separator in the video details (view count isn't shown). The code in watchVideoForChange should be

    if(info1.innerText.indexOf('•') > 0) {
      custom_info2.innerText = info1.innerText.split('•')[0].trim() + ' • ' + info1.innerText.split('•')[1].trim();
    } else {
      custom_info2.innerText = info1.innerText.trim();
    }
    var obs = new MutationObserver(function(mutations){
        if(info1.innerText.indexOf('•') > 0) {
          custom_info2.innerText = info1.innerText.split('•')[0].trim() + ' • ' + info1.innerText.split('•')[1].trim();
        } else {
          custom_info2.innerText = info1.innerText.trim();
        }
    });
q1k作者
§
发布于:2023-08-27

thankyou. updated.

发布留言

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

QingJ © 2025

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