Discord History Tracker is a browser script that lets you locally save chat history in your servers, groups, and private conversations.
When the script is active, it will automatically load history of the selected text channel up to the first message, and let you download it for offline viewing in your browser.
When running for the first time, you will see a Settings dialog where you can configure the script. These settings will be remembered as long as you don't delete cookies in your browser.
By default, Discord History Tracker is set to pause tracking after it reaches a previously saved message to avoid unnecessary history loading. You may also set it to load all channels in the server or your friends list by selecting Switch to Next Channel.
Once you have configured everything, upload your previously saved file (if you have any), click Start Tracking, and let it run. After the script saves all messages, download the generated file.
Open the Viewer and upload the generated file. It is recommended to download the viewer and place it next to your saved files, that way you can view your history offline.
Discord History Tracker and the viewer are fully client-side and do not communicate with any servers – the terms 'Upload' and 'Download' only refer to your browser. If you close your browser while the script is running, all unsaved progress will be lost.
Please, do not use this script for large or public servers. The script was made as a convenient way of keeping a local copy of private and group chats, as Discord is currently lacking this functionality.