<html><head></head><body>A searchengine is essentially a string substitution. A userscript is a full-fledged executable with infinite possibilities. These infinite possibilities include infinite possible bugs and security risks :)<br><br>If a searchengine works for your use case, keep it simple and stick with that. Userscripts are useful for advanced processing or integration with external tools, like a password manager.<br><br>You might glance at some if the scripts included in qutebrowser if you're curious.<br><br>-Ryan<br><br><div class="gmail_quote">On January 22, 2019 9:46:33 PM EST, Luis Mochan <mochan@icf.unam.mx> wrote:<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<pre class="k9mail">Another question,<br>I found out about the userscripts in qutebrowser. I guess they could<br>also be used, as well as the solution below, for translating from a<br>doi number to an access into the doi webpage and the actual article. <br>What would be the advantages/disadvantages of a userscript solution as<br>compared to the c.url.searchengines one?<br>Regards,<br>Luis<br><br><br>On Tue, Jan 22, 2019 at 03:54:26PM -0600, Luis Mochan wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #729fcf; padding-left: 1ex;">Hi Patric,<br><br>On Tue, Jan 22, 2019 at 01:07:47PM +0100, Patric Schmitz via qutebrowser wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #ad7fa8; padding-left: 1ex;">...<br>could it be sufficient to define a search engine for this? So create an<br>entry in c.url.searchengines in your config.py like<br><br>'doi': 'https://doi.org/{}',<br><br>which will allow you to just write<br><br>doi ...<br><br>in the address line? It won't be possible to click URL links of the form you<br>mentioned, but maybe that's enough for your usecase?<br></blockquote><br>Yes, indeed. Thanks!<br><br>Regards,<br>Luis<br><br>-- <br><br>                                                                  o<br>W. Luis Mochán,                      | tel:(52)(777)329-1734     /<(*)<br>Instituto de Ciencias Físicas, UNAM  | fax:(52)(777)317-5388     `>/   /\<br>Apdo. Postal 48-3, 62251             |                           (*)/\/  \<br>Cuernavaca, Morelos, México          | mochan@fis.unam.mx   /\_/\__/<br>GPG: 791EB9EB, C949 3F81 6D9B 1191 9A16  C2DF 5F0A C52B 791E B9EB<br><br><br></blockquote></pre></blockquote></div><br>-- <br>Sent from my Android device with K-9 Mail. Please excuse my brevity.</body></html>