-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdot_finicky.js
More file actions
54 lines (53 loc) · 1.23 KB
/
dot_finicky.js
File metadata and controls
54 lines (53 loc) · 1.23 KB
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
49
50
51
52
53
54
// Use https://finicky-kickstart.now.sh to generate basic configuration
// Learn more about configuration options: https://github.com/johnste/finicky/wiki/Configuration-(v4)
export default {
defaultBrowser: "Google Chrome",
options: {
hideIcon: true,
// hideIcon: false,
// logRequests: true
},
rewrite: [
{
match: ({ url }) => url.protocol === "http" && url.host !== "localhost",
url: (url) => {
url.protocol = "https";
return url;
},
},
],
handlers: [
{
match: ["meet.google.com*", "localhost:*"],
browser: "Google Chrome",
},
{
match: [
"zoom.us/j/*",
finicky.matchHostnames(/.*\.zoom.us/),
/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.host.startsWith("file") &&
!url.pathname.startsWith("/initiateExternalAuthenticationFromDesktop"),
browser: "Notion",
},
{
match: "linear.app/*",
browser: "Linear",
},
{
match: "figma.com/*",
browser: "Figma",
},
],
};