mfcc64 / youtube-musical-spectrum

Audio visualizer for YouTube and YT Music with musical notes.
GNU Lesser General Public License v3.0
175 stars 7 forks source link

The element `showcqt-element` is failed to be created #5

Open Davinais opened 1 year ago

Davinais commented 1 year ago

Hi,

I have tried the extension on Microsoft Edge 112.0.1722.34. However, there's no spectrum shown up.

The following shows the error from the console. image I've also tried the Firefox extension on Firefox 108.0.2, which have similar results.

It seems that the constructor of showcqt-element has violated some policies, so some modifications are required to solve it. Thank you.

mfcc64 commented 1 year ago

Does Chrome have similar result? Can you view page source of YouTube page and search for 'ShadyDOM'?

Thank's.

6rube commented 1 year ago

@mfcc64 i have the same error. I tried Chrome, Brave and Edge. I can find multiple files with ShadyDOM in the Page Source. image Thanks :)

mfcc64 commented 1 year ago

That's different problem. Can you run this

const cqt = document.getElementsByTagName("showcqt-element")[0];
console.log("sample rate:", cqt.audio_context.sampleRate);
console.log("dimension:", cqt.clientWidth, cqt.clientHeight);

Thank's.

Davinais commented 1 year ago

Hi, I almost forgot that I've posted the issue. I don't know what cause 6rube's issue but I found that mine works good now. Thanks.