From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id AAoJGgUmaGe7YgAA62LTzQ:P1 (envelope-from ) for ; Sun, 22 Dec 2024 14:45:25 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id AAoJGgUmaGe7YgAA62LTzQ (envelope-from ) for ; Sun, 22 Dec 2024 15:45:25 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=STiXlCfL; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=posteo.net ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1734878693; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=NYoS6oT3nRrMYc6Od2JYktYuk2IXjOElCvggU+sxuHE=; b=I/9tdnu8lyp0Jwr8H15DAbjwhP4sM0W2BYQ1gxsBV0OaQXnD+9BWZRV1SWhFMTspDJVjAe Zv0r6/P9fVxwOBO8Mwoz1KZQ1lfvFjXfdqqQjHHv84BJIMklVYLRW4qAfULUsz2Dd6ekVm MF30ttxxiLdjRGlCUppB/BxlUSi9ux5/vvjJp8mrHQhsjCDL/8bv8NqjXMqmg095gIyYwL Ri+BxhRJtZZmIh740UDYySWvQhB0aqeNuF0s2fDdNvU9h6IpV9K1rH9NulWXiRk7eP0Vjr uPTiXJoK2dlDx5mEBs7wvIbLGaVEJwFqz/cA5VOFKLyC5PPNyvoz2RAm80un5A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=STiXlCfL; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=posteo.net ARC-Seal: i=1; s=key1; d=yhetil.org; t=1734878693; a=rsa-sha256; cv=none; b=HkCFIsVDhoCOjKwtC112Fu4UTBOdMNVoydA/1aTYsgaRTdwIOltqk399D/A4fJWKeuCmoq OmqaH3sW6RxW4pgu3lTFHy6o3AO8DLRquhQ1jsglAlrfWmR7ADyDgb/2FFgqRToVXdKsLV hBY1y5l3lV2zdNBSlNZXRAelEBrgO1q+TAA10sfgOyNlEkdQDvjYItydd1t7Rpt+Atfrga PMFX8/lUD3ipHKsqlBqUTqO604mj0r6+WNmgJDT2KWUv2UtZGCfTq/siCHotFA/e3I62ja wYxGBvZ0poG8YWM0FCyJ0NOrhRgVddI4z2zqaFIA23VEWwk9J3lMHk4MCbxlFw== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 5D5497E7CC for ; Sun, 22 Dec 2024 15:44:53 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tPLGq-0008Uj-59; Sun, 22 Dec 2024 07:41:20 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tPLGn-0008UV-3H for emacs-orgmode@gnu.org; Sun, 22 Dec 2024 07:41:18 -0500 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tPLGl-0005l2-27 for emacs-orgmode@gnu.org; Sun, 22 Dec 2024 07:41:16 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 2BEA7240101 for ; Sun, 22 Dec 2024 13:41:09 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1734871270; bh=wjDCzMRPL7Ck1dfNF9vaR0458T8pR48cA+k2a1vS83o=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=STiXlCfL9AbuJxGDtUHWFBKv0p8jLPLfaKtk3M85JtHwszMg8C+BytILOlEP9j+Oo /J5YKzAzJCja/pp/EZtztrbHPI3YmDsesyjyVl/j4otbjXAn0FkWXItiDHRbz8wTlZ 5/TeQE50FGMMRoxkeFgvoNzl5Z/jTzYM4BJ5cQu/ALDHsLhTYEcqyWEGCeGALS7JKe wPl9uw951OMMYwm8mlbazJugguKeviW5h+jLzqRycpMWGY4FuS6ncikynOzJdR5PTs kOz1EHrnEa8BFb1uvOOvHwlJUoM15JqwWDOiL4oM2NZX9psiRLdtivxsdW+QFgqTjC c6UZlg/GZGAlg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4YGLP110kbz9rxG; Sun, 22 Dec 2024 13:41:09 +0100 (CET) From: Ihor Radchenko To: Max Nikulin Cc: emacs-orgmode@gnu.org Subject: Re: [PATCH] org-protocol: Add void() to bookmarklets In-Reply-To: References: <87pllx7219.fsf@gmail.com> <9aea6ebe-66a2-47d6-a7cc-a7ad9e8af284@gmail.com> <366e2a83-3703-40fd-b8eb-f5746a17864d@gmail.com> <878qsk68ma.fsf@gmail.com> Date: Sun, 22 Dec 2024 12:42:41 +0000 Message-ID: <87frmf99dq.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Scanner: mx11.migadu.com X-Migadu-Spam-Score: -5.99 X-Spam-Score: -5.99 X-Migadu-Queue-Id: 5D5497E7CC X-TUID: 7J0XrUwxB78s Max Nikulin 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 . Support Org development at , or support my work at