feat: Add Yandex Browser support for Power Mode

This commit is contained in:
Beingpax 2025-06-05 11:11:52 +05:45
parent 08920e1266
commit 6cc812ce9e
2 changed files with 12 additions and 1 deletions

View File

@ -13,6 +13,7 @@ enum BrowserType {
case vivaldi
case orion
case zen
case yandex
var scriptName: String {
switch self {
@ -26,6 +27,7 @@ enum BrowserType {
case .vivaldi: return "vivaldiURL"
case .orion: return "orionURL"
case .zen: return "zenURL"
case .yandex: return "yandexURL"
}
}
@ -41,6 +43,7 @@ enum BrowserType {
case .vivaldi: return "com.vivaldi.Vivaldi"
case .orion: return "com.kagi.kagimacOS"
case .zen: return "app.zen-browser.zen"
case .yandex: return "ru.yandex.desktop.yandex-browser"
}
}
@ -56,11 +59,12 @@ enum BrowserType {
case .vivaldi: return "Vivaldi"
case .orion: return "Orion"
case .zen: return "Zen Browser"
case .yandex: return "Yandex Browser"
}
}
static var allCases: [BrowserType] {
[.safari, .arc, .chrome, .edge, .brave, .opera, .vivaldi, .orion]
[.safari, .arc, .chrome, .edge, .brave, .opera, .vivaldi, .orion, .yandex]
}
static var installedBrowsers: [BrowserType] {

View File

@ -0,0 +1,7 @@
tell application id "ru.yandex.desktop.yandex-browser"
tell front window
tell active tab
return URL
end tell
end tell
end tell