Skip to content

Instantly share code, notes, and snippets.

@benhughes
Last active October 27, 2025 17:34
Show Gist options
  • Select an option

  • Save benhughes/eb9485add32a480de5aa6349ecf8999d to your computer and use it in GitHub Desktop.

Select an option

Save benhughes/eb9485add32a480de5aa6349ecf8999d to your computer and use it in GitHub Desktop.
// bookmarklet-title: Save to Things
// bookmarklet-about: Saves the current page to things
// bookmarklet-var: tag
// bookmarklet-var: project
const title = encodeURIComponent(document.title)
const text = encodeURIComponent(window.location);
const listParam = project ? `&list=${project}` : '';
const tagParam = tag ? `&tags=${tag}` : '';
window.location=`things:///add?title=${title}&notes=${text}${listParam}${tagParam}`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment