Skip to content

Instantly share code, notes, and snippets.

@benhughes
Last active September 9, 2025 07:53
Show Gist options
  • Select an option

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

Select an option

Save benhughes/7bb745119637aa2669b51fe38128f2ee to your computer and use it in GitHub Desktop.
// bookmarklet-title: Save Review to Omnifocus
// bookmarklet-about: Saves the current page to be a code review in omnifocus
// bookmarklet-var: tag
// bookmarklet-var: project
const title = encodeURIComponent(document.title)
const text = encodeURIComponent(window.location);
const contextParam = tag ? `&context=${tag}` : '';
const projectParam = project ? `&project=${project}` : '';
window.location = `omnifocus:///add?name=${title}&note=${text}${contextParam}${projectParam}`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment