[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] org-protocol: Add void() to bookmarklets
From: |
Ihor Radchenko |
Subject: |
Re: [PATCH] org-protocol: Add void() to bookmarklets |
Date: |
Sun, 22 Dec 2024 12:42:41 +0000 |
Max Nikulin <manikulin@gmail.com> writes:
> A patch updating org-protocol.el comments, docstrings, and the manual is
> attached.
Thanks!
> -javascript:location.href='org-protocol://store-link?' +
> - new URLSearchParams({url:location.href, title:document.title});
> +javascript:void(location.href='org-protocol://store-link?' +
> + new URLSearchParams({url:location.href, title:document.title}));
> #+end_example
Another variant from reddit is
javascript:location.href='org-protocol://store-link?'+new
URLSearchParams({url:location.href, title:document.title}); void(0);
https://old.reddit.com/r/emacs/comments/1h7ws1i/the_orgprotocol_bookmarklet_opens_a_blank_page/
Do you still prefer yours? I know close to nothing about JS.
Also, will the change work in older browsers? In non-Firefox?
--
Ihor Radchenko // yantar92,
Org mode maintainer,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>
- [BUG] Org-protocol bookmarklets in Firefox behaving badly after recent upgrade [9.6.15 (release_9.6.15 @ /usr/share/emacs/29.4/lisp/org/)], Rehan Deen, 2024/12/12
- Re: [BUG] Org-protocol bookmarklets in Firefox behaving badly after recent upgrade [9.6.15 (release_9.6.15 @ /usr/share/emacs/29.4/lisp/org/)], Max Nikulin, 2024/12/12
- Re: [BUG] Org-protocol bookmarklets in Firefox behaving badly after recent upgrade [9.6.15 (release_9.6.15 @ /usr/share/emacs/29.4/lisp/org/)], Max Nikulin, 2024/12/12
- Re: [BUG] Org-protocol bookmarklets in Firefox behaving badly after recent upgrade [9.6.15 (release_9.6.15 @ /usr/share/emacs/29.4/lisp/org/)], Rehan Deen, 2024/12/12
- Re: [BUG] Org-protocol bookmarklets in Firefox behaving badly after recent upgrade [9.6.15 (release_9.6.15 @ /usr/share/emacs/29.4/lisp/org/)], Max Nikulin, 2024/12/13
- [PATCH] org-protocol: Add void() to bookmarklets, Max Nikulin, 2024/12/16
- Re: [PATCH] org-protocol: Add void() to bookmarklets, Max Nikulin, 2024/12/16
- Re: [PATCH] org-protocol: Add void() to bookmarklets, Ihor Radchenko, 2024/12/22
- Re: [PATCH] org-protocol: Add void() to bookmarklets,
Ihor Radchenko <=
- Re: [PATCH] org-protocol: Add void() to bookmarklets, Max Nikulin, 2024/12/24
- Re: [PATCH] org-protocol: Add void() to bookmarklets, Ihor Radchenko, 2024/12/24
- Re: [PATCH v2] org-protocol: Add void() to bookmarklets, Max Nikulin, 2024/12/27
- Re: [PATCH v2] org-protocol: Add void() to bookmarklets, Ihor Radchenko, 2024/12/27
- [PATCH] etc/ORG-NEWS: Clarify org-protocol bookmarklet issue, Max Nikulin, 2024/12/28
- Re: [PATCH] etc/ORG-NEWS: Clarify org-protocol bookmarklet issue, Ihor Radchenko, 2024/12/28
- Re: [PATCH] etc/ORG-NEWS: Clarify org-protocol bookmarklet issue, Max Nikulin, 2024/12/29
- Re: [PATCH] etc/ORG-NEWS: Clarify org-protocol bookmarklet issue, Ihor Radchenko, 2024/12/30
Message not available
Re: [BUG] Org-protocol bookmarklets in Firefox behaving badly after recent upgrade [9.6.15 (release_9.6.15 @ /usr/share/emacs/29.4/lisp/org/)], Max Nikulin, 2024/12/26