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

Doesn't work on certain facebook videos when audio setting is enabled #1132

Open
LatinSuD opened this issue Aug 24, 2024 · 0 comments
Open

Comments

@LatinSuD
Copy link

Example:
https://www.facebook.com/reel/420174524346370

Error message is:

Uncaught TypeError: Cannot read properties of undefined (reading 'div')
    at eval (eval at runAction (inject.js:771:13), <anonymous>:1:41)
    at Array.forEach (<anonymous>)
    at eval (eval at runAction (inject.js:771:13), <anonymous>:1:11)
    at runAction (inject.js:771:13)
    at HTMLDocument.<anonymous> (inject.js:611:11)

The problem is at line 771:

mediaTags.forEach(function (v) {
    var controller = v.vsc.div; 
    ...

In my case it was produce because of an AUDIO tag did not have a "vsc" attribute.
If I disable the "work on audio" extension option it works.

You could check for the attributes or simply use a try/catch block.

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