NewPipe dev here: We discussed something like this, but decided against “hot loadable code” like JavaScript snippets. Instead, we notify the users when a new version of the app is available. However, this features is opt-in due to privacy concerns. Maybe we should make it more obvious that this feature exists.
Smarttube on Android TV just pulls its own APK so you just need to click Install after it downloads and opens it.