how to start application from browser script

didnt think this before, but i figured it out

run simple web server

https://h.hostr.cc/p/12daa8df16d9a5d232c14601571a5bf155329a0725aa31af58e7826f8ebd6f1c/d/fileloader.html#121160472f47fa8b2d5cb1366652a6c5ad9fe78c40df9001b4706f98f345c1a7/inline/quiet

then do query to localhost server from browser script

https://h.hostr.cc/p/12daa8df16d9a5d232c14601571a5bf155329a0725aa31af58e7826f8ebd6f1c/d/fileloader.html#5e37c69f1bd7e5d25101b550119f9f796e4f6bbdbf5e3e7df4512bdf6c8b59fd/inline/quiet

so feh-watch script launches feh image viewer when requested from browser like this:

```js

fetch("http://localhost:8000/?feh=" + [...document.querySelectorAll("figure img")].map((img, index) =>

img.dataset.original).join(";"))

```

Reply to this note

Please Login to reply.

Discussion

No replies yet.