Skip to content

Instantly share code, notes, and snippets.

@woodwardtw
Created March 3, 2026 16:18
Show Gist options
  • Select an option

  • Save woodwardtw/3a8e212cf31c51c5fe64e88b5fef25c9 to your computer and use it in GitHub Desktop.

Select an option

Save woodwardtw/3a8e212cf31c51c5fe64e88b5fef25c9 to your computer and use it in GitHub Desktop.
Gemini conversation bookmarklet
javascript:(()=>{ const turns = [...document.querySelectorAll('user-query, model-response')]; if (!turns.length) { alert('No conversation found — check selectors in DevTools.'); return; } const md = turns.map(el => { const role = el.tagName === 'USER-QUERY' ? %27## Student' : '## Gemini'; return %60${role}\n\n${el.innerText.trim()}%60; }).join('\n\n---\n\n'); navigator.clipboard.writeText(md) .then(() => alert(%60Copied ${turns.length} turns to clipboard.%60)) .catch(() => alert('Clipboard access denied — try clicking the bookmarklet again.'));})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment