I’m building some simple automations for indexing and searching my full chat transcripts offline based off of chatgpt export payloads.
I’m able to do rapid full text search on the raw markdown text on the backend, and then I was hoping to generate links (e.g. https://chat.openai.com/c/convo_UUID#msg_UUID
), however, in the app, the HTML structure of the messages only has a data-message-id
attribute to identify a given message, not an id
attribute, which I could use the URL to zero in on.
So it would appear that I cannot make this happen (reconstruct a personal use URL to pull up a specific message within a conversation) without building a trivial browser extension, here’s all the code it needs:
document.querySelector(`[data-message-id="${window.location.hash.slice(1)}"]`).scrollIntoView()
Before I go ahead and implement such a browser extension for like 3 different browsers does anyone know of a built in method to do this?