eruda icon indicating copy to clipboard operation
eruda copied to clipboard

Abnormal Console execution on YouTube

Open MasterInQuestion opened this issue 1 year ago • 0 comments

    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 ]

MasterInQuestion avatar Aug 08 '24 23:08 MasterInQuestion