chylex / Discord-History-Tracker

Desktop app & browser script that saves Discord chat history into a file, and an offline viewer that displays the file.
https://dht.chylex.com
MIT License
475 stars 83 forks source link

Different Versions of DHT Not Working For DMs and/or Servers #174

Closed princessbinas closed 2 years ago

princessbinas commented 2 years ago

This issue is a bit of a combination of issues #108, #161, and #129 depending on which version of DHT is used and which method of accessing Discord is used. I use Firefox (version 98.0.2) to access Discord when using a web browser.

I do not want Google Chrome on my computer, Ungoogled Chromium and Iridium don't like cooperating, and I barely touch Microsoft Edge due to problems that I have with that browser that are very unrelated to this issue.

However, I do have the addon User-Agent Switcher and Manager to switch the user agent string to the latest Chrome version (User Agent String Used: Mozilla/5.0 (Windows NT 10.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.7113.93 Safari/537.36) to test out the versions of DHT in Firefox that failed to log messages.

For DMs, messages are not being archived/logged in the following versions of DHT and methods of accessing Discord:

The versions of DHT that work for DMs are:

For servers, messages are not being archived/logged in the following versions of DHT and methods of accessing Discord:

The only version that seems to be working for server messages is the Desktop DHT Script (version 35.1) when it is used in:

I am not sure why DHT is not working in many of these instances. I hope that this extensive testing helps figure out the problem. I have included screenshots of the failed tests below to show the error messages that I have received while testing. Images also apply to any failed attempts with the User-Agent Switcher and Manager add-on.

1 2 3 4 5 6

chylex commented 2 years ago

There is nothing in DHT that cares about user agent, the reason why some combinations of browsers / userscript managers don't work (or didn't work in the past, or may not work in the future) is because browsers / userscript managers are buggy, or simply behave in a way that breaks DHT, which is not something you can mask by changing a few words in a user agent.

Yesterday, Discord released an update (121601) which broke server tracking, and this got fixed in the app (35.1). Both DM and server tracking is working for me with app (35.1), when pasting the tracking script into both the Discord app (121601) or Firefox (122003).

The browser-only version of DHT cannot track servers because I didn't update it to support 121601 yet. It's completely separate from the app version, and personally I've not used the browser-only version for years, so I tend to forget about it. I can update it tomorrow.

eduarcor commented 2 years ago

Looking for the browser update, thanks!!

chylex commented 2 years ago

Released version v.31b

princessbinas commented 2 years ago

I am not sure why the desktop version isn't working for me in DMs. Do you have any recommendations that I should try to fix that?

chylex commented 2 years ago

Are there any errors in the browser console? The screenshot shows "Error" in the status bar, so the console should show what happened. Just be careful about posting any potentially private information that can appear in the console, like random-looking sequences of numbers and letters.