<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">On Tuesday 15 September 2020 11:51:11 CEST RenĂ© J.V. Bertin wrote:</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> Hi,</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> </p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> I guess we're all familiar with documents (say, emails) containing links to</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> websites that are not "clickable", so you have to copy and then paste them</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> into your browser.</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> </p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> I've tried to come up with something to use the Web Shortcuts feature to</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> open them with just 2 clicks, but failed until now. The feature really</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> seems to be designed to open the selected text in a search engine.</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> </p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> I guess that what you'd need is an existing simple web proxy that takes an</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> encoded URL and then sends you there, so you could create a shortcut to</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> something like `https://go.to/\{@}`. I haven't found one yet (hard to come</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> up with a selective search key!). Alternatively, if the feature supports</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> local file URLs and those support arguments, you could replace the</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> `https://go.to/` part with a `file://path/to/goto.html/` file.</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> </p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> I have about zero experience doing web/html/JS coding but maybe someone here</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> can tell me if this is possible and give me some pointers?</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> </p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> Thanks,</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> R.</p>
<br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">Hi there,</p>
<br /><br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">I just played around with it a bit and came up with this:</p>
<br /><br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">I have a simple HTML file located locally on my computer and use JavaScript to correctly parse the URL.</p>
<br /><br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">My shortcut URL is</p>
<br /><br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">    file:///home/scrumplex/redirect.html#\{0}</p>
<br /><br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">I am using {0} here so you can also preserve the parameters of an URL (?foo=bar&bar=foo).</p>
<br /><br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">That file's content is here: https://gitlab.com/-/snippets/2015231 </p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;"><br /><br />-- </p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">Sefa Eyeoglu</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;"><a href="https://scrumplex.net
">https://scrumplex.net</a> </p>
<br /></body>
</html>