Greasy Fork is available in English.

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
    });
}

發表回覆

登入以回復