#javascript#appimage#compressor#downloader#electron#electron_app#ffmpeg#flatpak#javascript#linux#linux_app#macos#nodejs#snap#ubuntu#video#windows#youtube#youtube_dl#youtube_downloader#ytdownloader
You can use ytDownloader, a modern app that lets you download videos and audio from hundreds of sites like YouTube, Facebook, Instagram, TikTok, and Twitter. It works on Windows, macOS, and Linux, offers fast downloads, supports playlists, subtitles, and video compression with hardware acceleration, and has multiple themes. It’s free of ads and trackers, making it safe and easy to use. You can install it via various methods like Flatpak, Snap, or package managers on different systems. This helps you save videos for offline viewing, enjoy faster access without ads, and keep your favorite content anytime.
https://github.com/aandrew-me/ytDownloader
🚀 Вышел стабильный JavaScript движок от Google для Android
Новая стабильная библиотека Jetpack JavaScript Engine позволит разработчикам выполнять JS код в изолированной и ограниченной среде.
class MainActivity : ComponentActivity() {
// Теперь nullable, без lateinit
private var jsSandbox: JavaScriptSandbox? = null
private var jsIsolate: JavaScriptIsolate? = null
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
if (!JavaScriptSandbox.isSupported()) {
Log.e("JS", "JavaScriptSandbox не поддерживается")
return
}
lifecycleScope.launch {
// Создаём и сохраняем в nullable-поле
jsSandbox = JavaScriptSandbox
.createConnectedInstanceAsync(applicationContext)
.await()
jsIsolate = jsSandbox?.createIsolate()
// При выполнении гарантируем, что jsIsolate != null
val result: String = jsIsolate
?.evaluateJavaScriptAsync(JS_SCRIPT_SCRING)
?.await()
?: "Ошибка: isolate не инициализирован"
Log.d("JS", "Результат выполнения: $result")
}
}
override fun onDestroy() {
super.onDestroy()
// Закрываем только если не null
jsIsolate?.close()
jsSandbox?.close()
}
}
#jetpack#js