Skip to content

Timeout errors on YouTube Music #2283

Open
@rickdrumond

Description

@rickdrumond

I'm getting a TIMEOUT error logged to the console on Firefox every time a new song starts on YTM:

uncaught exception: TIMEOUT waiting for function(){const e=[".ytp-right-controls-right",".ytp-right-controls",".player-controls-top",".vjs-control-bar",".shaka-bottom-controls",".html5-player-chrome",".ypcs-control-buttons-right"];for(const t of e){const e=Array.from(document.querySelectorAll(t)).filter((e=>!s(e)));if(e.length>0)return e[e.length-1]}return null}: 1108/t.waitFor/</</<@moz-extension://87b3e857-79c4-4319-8081-74f637ee60d6/js/content.js:2:159996

Not sure if it's restricted to Firefox as I don't use other browsers. Also, I mostly listen to songs that don't have an actual video, just the album cover or some related image - not sure if there's any distinction to actual music videos.
I have Music: Non-Music Section set to Disable, so I believe SponsorBlock should short-circuit when it detects it's running on YTM and the option is unset. Scoping requested permissions so it doesn't automatically run on every youtube.com subdomain would be nice as well.
The issue doesn't seem to be affecting YTM itself, just a bit disruptive as I'm greeted with a huge wall of errors whenever I open the console.

Side: love the extension, thx for the hard work! please lmk if i can help

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions