MCPcopy
hub / github.com/xcanwin/KeepChatGPT / extractConversationIdFromPageUrl

Function extractConversationIdFromPageUrl

KeepChatGPT.user.js:2070–2075  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2068 };
2069
2070 const extractConversationIdFromPageUrl = function () {
2071 const matched = location.pathname.match(
2072 /\/c\/(([^/]{4,}?){4}-[^/]{4,}?)(?:\/|$)/,
2073 );
2074 return matched ? matched[1] : "";
2075 };
2076
2077 const updateEverChangingFromCurrentPage = async function () {
2078 const conversationId = extractConversationIdFromPageUrl();

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected