Steam Chat Message Logger (with Load More)

Extract and save Steam friend chat messages to a file, even when the page has "Load more" button

Maker
SnabbSpelare
Dagelijks aantal installaties
0
Totaal aantal installaties
0
Beoordelingen
0 0 0
Versie
1.1
Gemaakt op
24-04-2025
Bijgewerkt op
24-04-2025
Grootte
5,74 KB
Licentie
MIT
Wordt toegepast op

Steam Chat Message History Downloader

Steam Chat Message History Downloader

History Scanner not a Real-Time Logger

Description

This user script automatically extracts and saves your Steam friend chat messages from the Steam data page to a downloadable text file. It intelligently handles the "Load More" button, clicking it repeatedly until all available messages are loaded. It also includes robust duplicate message detection to ensure a clean, accurate chat log. This script is perfect for archiving your chat history or analyzing your conversations.

Key Features

  • Automatic "Load More" Handling:
    • Automatically clicks the "Load More" button on the Steam chat history page.
    • Dynamically adjusts delay based on loading success for improved efficiency.
    • Stops after reaching the end or after 24 attempts (default).
  • Duplicate Message Detection:
    • Uses hashing to detect and skip duplicate messages.
    • Logs duplicates to the console.
  • End-of-History Detection:
    • Detects end of chat history when no new messages load.
    • Stops if message count doesn't change after 3 attempts.
  • Message Extraction and Formatting:
    • Extracts sender, recipient, timestamp, and message.
    • Formats as Sender -> Recipient (Timestamp): Message.
  • File Download:
    • Saves messages to steam_chat_log_[timestamp].txt.
    • Download starts automatically.
  • Robust and Efficient:
    • Caches DOM elements for performance.
    • Prevents infinite loops with a maximum attempt cap.

Usage

  1. Install a userscript manager like Violentmonkey, Tampermonkey, or Greasemonkey.
  2. Install this script.
  3. Visit Steam Chat History.
  4. The script runs automatically: loads all messages, detects duplicates, and hits the attempt limit if needed.
  5. A text file with your chat history will download once complete.
  6. Important Notice

    Steam may automatically log you out approximately every 10 minutes to verify your identity. Before running this script, make sure you are logged in and have verified your session. You will not be able to load or view your chat messages until this verification is completed.

Console Output

  • Clicked 'Load more', attempt: X - Load More button clicked.
  • Duplicate message found: ... - A duplicate was skipped.
  • No new messages found, end of history reached.
  • No new messages for 3 attempts, assuming end of chat history.
  • Reached maximum attempts (24). Stopping.

Notes

  • Only works on the official Steam chat history page.
  • Uses async operations — download may take a moment after last click.
  • Default max attempts is 24, editable in the script.
  • Delay adapts to slower connections.

Credits

Developed by Snabb

Inspired by the need to archive Steam chat history efficiently.

Disclaimer


All the text except this is written by AI cause I far too lazy tow rite it. But I have tested it and it didn't take too long to make. But I couldn't find any other solution. This is by far the safest and most up to date and won't ever be broken cause steam is lazy and valve probably wont tocuh this site. if they do. then why now lol.


Thanks to valve and steams employes for making this harder to do on pc but easy as pie on a web browser! I hope you have a nice day and enjoy this script. Its the first one I ever made and pusblished on Greasy Fork (Gf) without copying someones else source code. Which if your wonder is the steam vac prank script.


Serciously I tested it many times and sent messages to my closest things and this logs/saves every message from everyone the past two weeks appeartly. But if you chat more frequently it might do it quicker and faster.


I prefer Discord cause it never deletes anything but it allows users to delete. So... this is techically the best way to log undeleted text. Useful for logging scams, scammers and friends who went crazy or have said some bad stuff.


I use it to remember what I said and what I could've forgotten I had plans to do with a friend cause we often go on Steam chat for simplcity. I hope this isnt too mcuh. Thank you!!!!!