Web viewer Bookmarks
approvedby Stefan Danzl
Create and manage bookmarks for the built-in Web viewer.
Web viewer Bookmarks
A simple community plugin for Obsidian that allows you to create and manage bookmarks for websites when using Obsidian's built-in web viewer.
Features
- Create and manage website bookmarks for quick access in Obsidian's built-in web viewer
- Add bookmarks to the Obsidian ribbon for one-click access
- Access bookmarks via commands in the command palette
- Customize bookmark icons using Lucide icon names
Installation
- In Obsidian, go to Settings → Community plugins
- Disable Safe mode
- Click "Browse" and search for "Web viewer Bookmarks"
- Install the plugin
- Enable the plugin in your list of installed plugins
Manual Installation
- Create a folder named
webviewer-bookmarksin your vault's.obsidian/plugins/directory - Download the
main.js,manifest.json, andstyles.cssfiles from the latest release - Add them to the plugin folder
- Enable the plugin in your Obsidian settings
Managing Bookmarks
- Go to Settings → Web viewer Bookmarks
- Here you can:
- Add bookmarks
- Edit existing bookmarks
- Delete bookmarks
- Change icons
Customizing Icons
The plugin uses Lucide icons for bookmark visuals. To set an icon:
- Browse the Lucide icon library to find the icon name you want
- Enter the icon name exactly as it appears (e.g., "book-marked", "globe", "bookmark")
Ribbon and Command Integration
For each bookmark, you can choose to:
- Add a ribbon icon for one-click access
- Create a command in the command palette
Note: After making changes to bookmarks, Obsidian must be reloaded for the changes to take effect.
Using {{selection}} in bookmarks
- You can include the template
{{selection}}in a bookmark URL to insert the currently selected text from the active Markdown editor. - Example URL for a search engine:
https://www.duckduckgo.com/?q={{selection}} - If you select the word
duckin a Markdown note and run that bookmark, the plugin will openhttps://www.duckduckgo.com/?q=duck(the selection is URL-encoded).
Encoding details:
- The plugin uses percent-encoding via
encodeURIComponentfor the inserted selection. That means spaces become%20and special characters are encoded according to standard URL percent-encoding rules. This is the safest and most compatible default behavior. - If nothing is selected in the active Markdown editor, the
{{selection}}placeholder is replaced with an empty string (the URL will open without a search term).
Notes and limitations:
- The selection is read from the active Markdown editor (Obsidian's
MarkdownView.editor.getSelection()). It does not (currently) read selections from embedded webviews or iframes. - Some sites expect
+instead of%20for 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.
Troubleshooting
- Bookmarks not appearing: Reload Obsidian after making changes
- Icons not displaying correctly: Ensure you're using valid Lucide icon names
- Web viewer not opening: Check that Obsidian's built-in web viewer is enabled
Support
If you encounter any issues or have feature requests, please file an issue on the GitHub repository.
License
This plugin is licensed under the MIT License.
Credits
- Built for Obsidian's API
- Uses Lucide icons
- Inspired by the needs of the Obsidian community
For plugin developers
Search results and similarity scores are powered by semantic analysis of your plugin's README. If your plugin isn't appearing for searches you'd expect, try updating your README to clearly describe your plugin's purpose, features, and use cases.