m1k1o / neko

A self hosted virtual browser that runs in docker and uses WebRTC.
https://neko.m1k1o.net/
Apache License 2.0
5.96k stars 449 forks source link

Feature: ?url=www.website.com/page.html param #289

Open jimremoteview opened 1 year ago

jimremoteview commented 1 year ago

As a person that wants to view a URL inside n.eko, I want to be able to pass a parameter via HTTP to have Chromium/Firefox/Tor open a link in a new tab.

Example: https://neko.example.com?usr=me&pwd=admin&url=https://www.example.com/page.html (or encoded as https%3A%2F%2Fwww.example.com%2Fpage.html)

m1k1o commented 1 year ago

Currently Neko does not communicate with inside browser at all. Neko is only as remote virtual environment gareway, that records screen and sends key / mouse events. In order to open a page inside browser, it would need to communicate with the browser. Since there are multiple browsers (e.g. chrome uses remote debugging port, firefox maybe something different) and use-cases that do not even include browser (VLC, Remmina, KDE, Kodi..).

Also the question would be, what if there is already someone in the room browsing a page, and someone jonins with this link? Would it forcefully change the website?

I thnik this use-case is only relevant where neko is used by a single user: And therefore it would be interessant to add some kind of remote start function (to specify what program should be started), or to have custom pre-defined shell scripts that execute routine. And when that user leaves, that started program would be automatically closed. Similar issue is there: https://github.com/m1k1o/neko/issues/71

This could be a good plugin, extension of browser setups.