Anki add-on: Qolibri/GoldenDict Search

On linux runs qolibri with some search query & uses wmctrl to focus the qolibri window. To use it, create a button (or anything else you want) in the card template like this: <button id="clickMe";">Qolibri</button> <br> <script> //- Using an anonymous function: document.getElementById("clickMe").onclick = function () { pycmd('queryQolibri ' + '{{FrontSide}}'); }; </script> You can change the {{FrontSide}} to whatever you want to query in qolibri. Qolibri should be run with the server setting PRIOR to using it in anki for it to work correctly (otherwise qolibri would open & anki would hang). An anki restart is required after installing the plugin. Now also supports GoldenDict (use queryGoldenDict instead of queryQolibri).