From rgr, 2 Months ago, written in Plain Text.
Embed
  1. config.bind(
  2.     "<Ctrl-r>",
  3.     "open javascript:((function(){let v=(new URLSearchParams(window.location.search)).get('v');if(location.href.indexOf('youtube.com')>=0&&v!==null){let seek=(document.getElementsByClassName('video-stream html5-main-video')[0].currentTime).toFixed();let ytb='https://youtu.be/'+v;location.href='org-protocol://roam-ref?template=v&ref='+encodeURIComponent(ytb)+'&title='+encodeURIComponent(document.title)+'&body=[['+encodeURIComponent(ytb+'&t='+seek)+']['+(new Date(seek*1000)).toISOString().substr(11,8)+']]';}else{location.href='org-protocol://roam-ref?template=r&ref='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title)+'&body='+encodeURIComponent(window.getSelection())}})())",
  4. )

Replies to org-protocol youtube timestamp grabber rss

Title Name Language When
org-protocol website grabber rgr text 2 Months ago.