As a Frenchman who’s really into live music I would, and I do! Yeah I know, COVID and shit but in the middle of a festival, having a blast and surrounded by like-minded people, if you ask nicely and I have some to spare I’ll give you a joint without thinking twice!
Yes, these comments are JavaScript code, intended to run in the browser of anyone viewing them. Best to stay clear of the webapp for now (native mobile apps should not be vulnerable).
Comments are good when you’re doing something weird to handle an edge case or something. But yeah most of the time clear variable names, and extracting complicated code to a dedicated and clearly named function, are enough.
There are only two hard things in Computer Science: cache invalidation and naming things.
It’s a proxy though, so it could inspect the actual content, detect ads and do something about it. Peertube, Grayjay etc bypass ads just fine so I guess it could be done with the webapp?
npm means it’s a JS app running on a JS runtime, which is roughly similar to what python does. Electron runs on top of the runtime and indeed provides some kind of stripped down browser.
But yeah, in this case the app does use electron :)