Abnormal Console execution on YouTube
Certain basic elements manipulation didn't work. URL: https://www.youtube.com/watch?v=7y_htm0sw-I&t=220
Commands:
document.querySelector( "ytd-logo" ).style.display = "none"; // OK
document.querySelector( "ytd-player" ).style.display = "none"; // OK
document.querySelector( ".ytp-caption-segment" ).style.backgroundColor = "red"; // Fail?
document.querySelector( ".ytp-caption-segment" ).innerText = "whatever"; // May fail?
document.documentElement.innerText = "whatever"; // OK
See also: https://github.com/MasterInQuestion/talk/discussions/36
Worked in bookmarklet alike:
javascript: (function () { document.querySelector( ".ytp-caption-segment" ).style.backgroundColor = "red"; })();
Eruda 3.2.1 Firefox Fenix 129 [ See also: https://github.com/MasterInQuestion/talk/discussions/11 ]