YouTube - Proper Description

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

< Rückmeldungen auf YouTube - Proper Description

Rezension: OK - Skript funktioniert, hat aber Fehler

§
Veröffentlicht: 27.08.2023
Bearbeitet: 27.08.2023

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();
        }
    });
q1kVerfasser
§
Veröffentlicht: 27.08.2023

thankyou. updated.

Antwort schreiben

Anmelden um eine Antwort zu senden.