Skip to content

Instantly share code, notes, and snippets.

@olragon
Created August 21, 2023 02:51
Show Gist options
  • Save olragon/d34f68860ed039503cce794476f554f9 to your computer and use it in GitHub Desktop.
Save olragon/d34f68860ed039503cce794476f554f9 to your computer and use it in GitHub Desktop.
Obsidian - Clip Link to Daily bookmarklet
  1. Go to https://caiorss.github.io/bookmarklet-maker/
  2. Input Title, paste to Code, replace YOUR_VAULT_NAME_HERE, change or replace YOUR_FOLDER_HERE_OR_REMOVE (eg: Daily/)
window.open(`obsidian://new
	?vault=YOUR_VAULT_NAME_HERE
	&append=1
	&file=${encodeURIComponent('YOUR_FOLDER_HERE_OR_REMOVE' + new Date(new Date().getTime() - (new Date).getTimezoneOffset()).toISOString().split('T')[0])}
	&content=${encodeURIComponent(`\n## ${document.title}\nLink: [${window.location.href}](${window.location.href})`)}
`)
  1. Generate Bookmarklet & drag Bookmarklet link to Browser's Bookmark Toolbar image

  2. Enjoy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment