From 0b8d1b7cf7db198046ab84e6274560629aa1147e Mon Sep 17 00:00:00 2001 From: Ricky de Laveaga Date: Wed, 6 Mar 2024 21:26:40 -0800 Subject: [PATCH] Update saving.md with improved bookmarklet As seen on Discord, this update to the bookmarklet doesn't nerf the tab being saved with the dreaded `[object Window]` ```js javascript:void(open('https://omnivore.app/api/save?url='+encodeURIComponent(location.href),'Omnivore')) ``` --- docs/using/saving.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/using/saving.md b/docs/using/saving.md index c59551eb..b7dd2fd6 100644 --- a/docs/using/saving.md +++ b/docs/using/saving.md @@ -39,13 +39,13 @@ Some security policies prevent users from installing browser extensions. If you You can use the following code to create a bookmarklet that saves to Omnivore: -``` -javascript:window.open("https://omnivore.app/api/save?url=%22%20+%20window.location.href,%20%27_blank%27); +```js +javascript:void(open('https://omnivore.app/api/save?url='+encodeURIComponent(location.href),'Omnivore')) ``` Or drag the Save to Omnivore link below into your bookmark manager: -Save to Omnivore +Save to Omnivore ## Saving from a Phone or Tablet