Skip to content

Instantly share code, notes, and snippets.

@ohAitch
Created December 3, 2025 15:44
Show Gist options
  • Select an option

  • Save ohAitch/86decfa548c2c4ba01a46a51f7e72667 to your computer and use it in GitHub Desktop.

Select an option

Save ohAitch/86decfa548c2c4ba01a46a51f7e72667 to your computer and use it in GitHub Desktop.
// On every page, run
links=[...document.querySelectorAll('p a')].map(x=>x.outerHTML);
page=[`<link rel="self" href=${document.location}/>`, ...links].join("\n");
localStorage.setItem("oh-links",
(localStorage.getItem("oh-links") || "") + "\n\n" + page
)
//Then copy out one final
localStorage.getItem("oh-links")
//and paste it into https://claude.ai/public/artifacts/bbb54583-0310-49d5-b3fe-54a87054b5ac
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment