-
Notifications
You must be signed in to change notification settings - Fork 1
/
dot_finicky.js
48 lines (47 loc) · 1.1 KB
/
dot_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
36
37
38
39
40
41
42
43
44
45
46
47
48
// Use https://finicky-kickstart.now.sh to generate basic configuration
// Learn more about configuration options: https://github.com/johnste/finicky/wiki/Configuration
module.exports = {
defaultBrowser: "Safari",
options: {
hideIcon: true,
// hideIcon: false,
// logRequests: true
},
rewrite: [
{
match: ({ url }) => url.protocol === "http" && url.host !== "localhost",
url: { protocol: "https" }
}
],
handlers: [
{
match: [
"meet.google.com*",
"localhost:*"
],
browser: "Google Chrome"
},
{
match: [
"zoom.us/j/*",
finicky.matchDomains(/.*\zoom.us\/j/),
/zoom.us\/j\//,
],
browser: "us.zoom.xos"
},
{
match: "open.spotify.com/*",
browser: "Spotify"
},
{
match: ({ url }) => url.host.endsWith("notion.so") &&
!url.host.startsWith("calendar") &&
!url.pathname.startsWith("/initiateExternalAuthenticationFromDesktop"),
browser: "Notion"
},
{
match: /^https?:\/\/.*\.slack\.com\/archives\/.*$/,
browser: "Slack"
}
]
}