Open Media from Your Browser
Use an Obsidian URI or bookmarklet to send media from your browser into Media Extended with one click.
Instead of copying a URL from your browser and pasting it into Obsidian, you can send it over directly. Media Extended registers a custom Obsidian URI for this.
URI formats
Media Extended registers a custom Obsidian URI that opens any media URL in the plugin:
Query parameter format:
obsidian://mx-open?url=<encoded-url>Path format — add obsidian://mx-open/ before the URL in your address bar:
obsidian://mx-open/https://www.youtube.com/watch?v=dQw4w9WgXcQBoth formats work the same way. The path format is quicker when you're editing the address bar by hand. The t= value uses the same time format as vault links. See Timestamps and Time Links for the full syntax.
Set up a bookmarklet
A bookmarklet sends the current page's media to Media Extended and captures the playback position, so the video picks up where you left off.
- Create a new bookmark in your browser
- Set the bookmark name to something like "Open in Media Extended"
- Set the URL to the following code:
javascript:(()=>{const t=document.querySelector("video, audio")?.currentTime,u=new URL(window.location.href);t&&(u.hash?u.hash+=`&t=${t}`:u.hash=`#t=${t}`),window.open(`obsidian://mx-open?url=${encodeURIComponent(u.toString())}`)})();- Save the bookmark
If you're not sure how to create a bookmarklet, follow the bookmarklet installation guide on Wikipedia for your browser.
Use the bookmarklet
- Navigate to a video page in your browser (YouTube, Vimeo, or any page with a media player)
- Start playback and reach the moment you want
- Click the bookmarklet in your bookmarks bar
Obsidian opens (or comes to the front) and Media Extended loads the video at the timestamp you were watching. If no video or audio element is playing on the page, it opens the URL from the beginning.
Your browser may ask permission to open Obsidian the first time you use the bookmarklet. Allow it. If Obsidian does not come to the front, make sure the app is already open.
The bookmarklet looks for the first <video> or <audio> element on the page. On some sites the media element is inside an iframe and cannot be reached. In that case, copy the URL manually and open it through the media quick switcher.
See also
- Open from a Hosting Service — open YouTube, Vimeo, and Bilibili directly in the media quick switcher
- Notes with the Web Viewer — tutorial for browsing video sites inside Obsidian
- Timestamps and Time Links — how
#t=links in the URI work