Skip to content

Conversation

@ayaadev
Copy link

@ayaadev ayaadev commented Nov 4, 2025

This PR fixes issue #6.

Hi there! I tried running this script but it gave the following error when using a Chromium browser:

TypeError: Cannot read properties of undefined (reading 'scrollTop')
    at loadChat (<anonymous>:2…}

The error is referring to line 2 of loadChat, which is:

let conversationWindow = document.getElementsByClassName("x78zum5 xdt5ytf x1iyjqo2 xs83m0k x1xzczws x6ikm8r x1odjw0f x1n2onr6 xh8yej3 x16o0dkt")[1]

I inspected the value of document.getElementsByClassName("x78zum5 xdt5ytf x1iyjqo2 xs83m0k x1xzczws x6ikm8r x1odjw0f x1n2onr6 xh8yej3 x16o0dkt") by itself and found that there was no 1'th place in the array.
image

I changed the index to [0] and everything seems to work now. I also confirmed the same issue is present on Firefox. Thanks.

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

Successfully merging this pull request may close these issues.

1 participant