1.8 KiB
RedditBot Session Exporter
This local Chrome extension exports reddit.com cookies and the current Reddit Chat Matrix credential into one JSON file for the self-hosted dashboard's Import Reddit session control. The file is equivalent to a login credential: do not share it, commit it, or send it to anyone.
Install and use
- In Chrome, open
chrome://extensions, enable Developer mode, then choose Load unpacked and select this folder. If it was already loaded, click its Reload button after updating these files so Chrome starts the new service worker. - Sign in to Reddit in the same Chrome profile.
- Open Reddit Chat and wait for it to finish loading. Do not use
www.reddit.com/chat/: its Matrix bridge can return HTTP 405. The extension badge changes toOKwhen it captures the Matrix credential. If no credential has been captured yet, clicking the extension opens the correct Chat host automatically. - Click the RedditBot Session Exporter toolbar icon and save
redditbot-session.json. - In RedditBot Dashboard > Settings > Access, choose Import Reddit session and select the exported file.
- Delete the downloaded JSON file once the dashboard confirms that the session is authenticated.
The extension observes only requests to Reddit's Matrix homeservers, verifies the captured token with Matrix whoami, reads Reddit cookies, and saves the combined export locally. It does not send the dump to any server; you upload it directly to your RedditBot dashboard.
Before downloading, the extension independently resolves the current Reddit cookie identity and refuses the export unless its t2 account ID matches Matrix whoami. Changing Reddit accounts clears the stored Matrix capture, so Reddit Chat must be reopened after every account switch.