stefandanzl2k downloadsCreate and manage bookmarks for the built-in Web viewer.
A simple community plugin for Obsidian that allows you to create and manage bookmarks for websites when using Obsidian's built-in web viewer.
webviewer-bookmarks in your vault's .obsidian/plugins/ directorymain.js, manifest.json, and styles.css files from the latest releaseThe plugin uses Lucide icons for bookmark visuals. To set an icon:
For each bookmark, you can choose to:
Note: After making changes to bookmarks, Obsidian must be reloaded for the changes to take effect.
{{selection}} in bookmarks{{selection}} in a bookmark URL to insert the currently selected text from the active Markdown editor.https://www.duckduckgo.com/?q={{selection}}duck in a Markdown note and run that bookmark, the plugin will open https://www.duckduckgo.com/?q=duck (the selection is URL-encoded).Encoding details:
encodeURIComponent for the inserted selection. That means spaces become %20 and special characters are encoded according to standard URL percent-encoding rules. This is the safest and most compatible default behavior.{{selection}} placeholder is replaced with an empty string (the URL will open without a search term).Notes and limitations:
MarkdownView.editor.getSelection()). It does not (currently) read selections from embedded webviews or iframes.+ instead of %20 for spaces (form-style encoding). The plugin uses percent-encoding by default to avoid surprises; if you need site-specific behavior you can adapt the bookmark URL accordingly.If you encounter any issues or have feature requests, please file an issue on the GitHub repository.
This plugin is licensed under the MIT License.