ovitrif3k downloadsPreview external URLs on hover. Works in Editor, Live Preview, and Reader modes.
A plugin for Obsidian that shows a preview of external URLs without leaving Obsidian. Works in Editor, Live Preview, and Reader modes.

owner/repo#123 show a GitHub button to convert them to Markdown linksA preview takes focus when a click opens it, and while it has focus the browser keys work in it: Cmd+[ and Cmd+] go back and forward, and Cmd+L selects the address for typing (Ctrl on Windows and Linux).
#123 beside GitHub issue and pull request linksHold your configured modifier keys (⌘ on Mac, Ctrl on Windows/Linux by default) and click any external link to see a preview. Without a mouse, put the cursor on a link and run URL Preview: Preview link at cursor from the command palette.
URLs written inside inline code or a fenced code block are left alone: they get no preview and no GitHub badge.
Use Open in right-side panel in the toolbar to place the preview beside your note without creating a workspace split or tab. Further preview links reuse that panel; Back and Forward follow both links opened from notes and navigation within the website. Closing the panel restores the note's full width. Closing a preview keeps its loaded page in memory. On reopening, the cached page appears immediately while a fresh copy loads behind it. The replacement preserves page scrolling; failed refreshes and active edits keep the existing page. Refreshes are triggered only by reopening a closed preview. A cached page is silenced while it is out of sight, and is dropped five minutes after you close it, when a sixth page pushes it out, or when the plugin unloads.
The panel docks beside the note or Kanban board the preview was opened from, or beside the most recent one. The side-panel toolbar button switches back to a floating preview without reloading. Drag the divider to resize the note and preview; its position is remembered. The divider highlights in the accent color on hover and while dragging, and supports Left/Right arrow keys when focused.
In Live Preview or source mode, right-click an external URL, a scheme-less github.com/... URL, or a short GitHub reference such as owner/repo#123, then choose Convert URL to Markdown link to replace it with [page title](url). For GitHub pull request and issue links, the menu also includes Add repo name prefix, Copy issue or PR ID, and Copy agent session title.
Other plugins can open a preview through app.plugins.plugins['url-preview'].api, present while URL Preview is enabled:
api.open(url: string, options: { anchor: HTMLElement; side?: boolean }): boolean
api.openNote(path: string, options: { anchor: HTMLElement }): boolean
anchor is the element the preview opens beside, as if a link there had been modifier-clicked. When the side panel is already open beside it, the panel shows the URL.side: true opens the preview in the side panel straight away.false, and opens nothing, for a URL that is not http or https.openNote shows the vault note at path in the side panel beside the note or board that holds anchor, in Reading view or Live Preview (the pencil button switches, and the panel can edit the note), exactly as a tab shows it, with the same zoom controls. Its title shows the note's folders as breadcrumbs: a folder opens a list of its docs (Arc Theme's breadcrumb dropdown when Arc is on), and a pick opens in the panel; a click on the name copies it. Open side panels come back after a restart, each on its tab: a note panel with its history, a docked preview at its page. Back and forward step through the notes the panel showed; hold either, or right-click it, to pick from the list. It follows edits to the note, a link in it opens in the panel, and it shares the panel with docked URLs: one replaces the other. It returns false when the path is no note or no note or board can hold the panel.On desktop, previews use Obsidian's persistent embedded browser session when available, so login state can be reused by later previews. Use the website's own sign-in and sign-out controls.
On desktop the preview is an embedded browser view, so a site's framing rules do not apply and most pages load.
Where that embedded view is unavailable — on mobile, or in a host without it — the preview falls back to an iframe. There, a site that blocks framing cannot be previewed, a blocked page stays blank with no message, and Back and Forward only follow links opened from your notes, not navigation inside the page.
The GitHub hover card's loading skeleton is drawn with a two-glyph subset of Flow Circular by Dan Ross, licensed under the SIL Open Font License 1.1.
If you encounter issues or have suggestions, please file them on the GitHub repository.
See CHANGELOG.md for release history.
MIT. See LICENSE.