YouTube - Proper Description

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

< Обсуждения YouTube - Proper Description

Отзыв: Хороший — скрипт работает как нужно

how to auto expand description

q1kАвтор
§
Создано: 16.07.2023

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

how to auto expand description

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

q1kАвтор
§
Создано: 16.07.2023

how to auto expand description

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

mmkay

q1kАвтор
§
Создано: 16.07.2023

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

Ответить

Войдите, чтобы ответить.