Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Abnormal Console execution on YouTube #445

Open
MasterInQuestion opened this issue Aug 8, 2024 · 0 comments
Open

Abnormal Console execution on YouTube #445

MasterInQuestion opened this issue Aug 8, 2024 · 0 comments

Comments

@MasterInQuestion
Copy link

MasterInQuestion commented Aug 8, 2024

    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 ]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant