-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.finicky.js
35 lines (30 loc) · 890 Bytes
/
.finicky.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
finicky.setDefaultBrowser('com.google.Chrome')
finicky.onUrl(function (url, opts) {
// Medium
if (url.match(/^https?:\/\/medium\.com/)) {
return {
bundleIdentifier: 'br.com.guilhermerambo.Mediunic'
}
}
// A/V
if (url.match(/\w*.webm\b/) || url.match(/\w*.mp4\b/) || url.match(/\w*.mp3\b/) ||
url.match(/^https?:\/\/www\.youtube\.com\/watch/) ||
url.match(/^https?:\/\/www\.youtu\.be/)) {
return {
bundleIdentifier: 'com.colliderli.iina',
url: 'iina://weblink?url=' + encodeURI(url)
}
}
// Maps
// if (url.match(/^https?:\/\/maps\.google\.com/) || url.match(/^https?:\/\/google\.com\/maps/)) {
// return {
// bundleIdentifier: 'com.electron.google-maps'
// }
// }
// Trello
// if (url.match(/^https?:\/\/trello\.com/)) {
// return {
// bundleIdentifier: 'com.atlassian.trello'
// }
// }
})