Sergei Chistokhin33 downloadsExcludes all Obsidian windows from screen-share/recording capture on Windows (SetWindowDisplayAffinity).
Obsidian plugin that excludes all Obsidian windows (main window and any
popped-out panes) from screen-share/recording capture on Windows, using
SetWindowDisplayAffinity(WDA_EXCLUDEFROMCAPTURE) via Electron's
BrowserWindow.setContentProtection().
eye-off icon, highlighted.eye icon, normal.window-open workspace event.npm install
npm run build
Then copy (or symlink) manifest.json, main.js, and styles.css into
<vault>/.obsidian/plugins/hide-from-capture/, and enable the plugin from
Obsidian's Community Plugins settings.
For iterative development, use npm run dev (esbuild watch mode) and
symlink the plugin folder into your vault so rebuilds are picked up
without recopying.
Press Win+Shift+S (Snipping Tool) and try to capture the Obsidian
window while protection is enabled — it should appear black or be
omitted from the capture. Toggle the ribbon button off and repeat to
confirm the window captures normally again.