YouTube - Proper Description

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

< 脚本 YouTube - Proper Description 的反馈

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

§
发布于:2023-07-16

how to auto expand description

q1k作者
§
发布于:2023-07-16

That is not a part of the script and never will be.

§
发布于:2023-07-16

how to auto expand description

That is not a part of the script and never will be.

q1k作者
§
发布于:2023-07-16

how to auto expand description

That is not a part of the script and never will be.

mmkay

q1k作者
§
发布于:2023-07-16

If you really want to have the description auto open, add this at the end of the script.

// auto open description
findElement("#meta ytd-expander").then(function(el){
    openDescription(el);
});
function openDescription(aed) {
    var mo = new MutationObserver(function(mutations) {
        if(aed.hasAttribute("collapsed")) {
            aed.removeAttribute("collapsed");
            //mo.disconnect();
        }
    });
    mo.observe(aed, {
        childList: true,
        subtree: true,
        characterData: true
    });
}

发布留言

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

QingJ © 2025

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