A simple bookmarklet to capture text from a webpage to Roam Research.
You can use or adapt the code below or simple drag and drop this link to your bookmarks/favorites bar on you browser.
This is in the format of:
quote — via link to page
javascript:q=location.href;if(document.getSelection){d=document.getSelection();}else{d='';};p=document.title;void(open('https://roamresearch.com?text=__'+encodeURIComponent(d)+'__ — via ['+encodeURIComponent(p)+']('+encodeURIComponent(q)+') [[Quotes]]#quick-capture','Roam','toolbar=no,width=700,height=350'));
This just grabs the title and link in markdown.
javascript:q=location.href;if(document.getSelection){d=document.getSelection();}else{d='';};p=document.title;void(open('https://roamresearch.com?text=['+encodeURIComponent(p)+']('+encodeURIComponent(q)+') [[link]]#quick-capture','Roam','toolbar=no,width=700,height=350'));
This is to write your own notes nest to the link of the page.
javascript:q=location.href;if(document.getSelection){d=document.getSelection();}else{d='';};p=document.title;void(open('https://roamresearch.com?text= — notes to ['+encodeURIComponent(p)+']('+encodeURIComponent(q)+') [[notes]]#quick-capture','Roam','toolbar=no,width=700,height=350'));
Or just to open Quick Capture without text.
javascript:open('https://roamresearch.com/?text= #quick-capture','Roam','toolbar=no,width=700,height=350');
The bookmarklet uses the Mobile Quick Capture url integration (https://roamresearch.com/#/app/help/page/07-02-2020).
No need for copy-paste.
This bookmarlet is adapted from the Pinboard bookmarklet. The text format is based on +Roam
A better version of this page https://adolforismos.github.io/roam-quick-capture-bookmarklet/
By: adolforismos