-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.finicky.js
61 lines (58 loc) · 1.51 KB
/
.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
49
50
51
52
53
54
55
56
57
58
59
60
61
// Finicky config file. See https://github.com/johnste/finicky/wiki/Configuration
// for a list of supported options & syntax
const STRAVA_BROWSER = {
name: "Google Chrome",
// Profile 2 is personal profile, Profile 3 is work profile, Profile 1 is ???
profile: "Profile 3",
}
const DEBUG_MODE = true
module.exports = {
// use Safari as a personal browser
defaultBrowser: "Safari",
options: {
logRequests: DEBUG_MODE,
},
handlers: [
// {
// // debug logger
// match: ({ opener }) => {
// finicky.log('OPENER', opener)
// return false
// },
// browser: STRAVA_BROWSER
// },
// open zoom links straight in zoom
{
match: [
finicky.matchDomains(/.*\.zoom.us$/)
],
browser: {
name: "us.zoom.xos"
}
},
// open Figma links straight in Figma
{
match: "https://www.figma.com/file/*",
browser: "Figma",
},
{
// Open any link clicked in Slack in work browser
match: ({ opener }) =>
opener.bundleId === "com.tinyspeck.slackmacgap",
browser: STRAVA_BROWSER
},
{
match: [
// open AWS login prompts in work browser
finicky.matchDomains(/.*\.amazonaws.com$/),
// open any url containing the string "strava" in work browser
"*strava*",
// open all github urls in work browser
"https://github.com/*",
// open all localhost urls in work browser
"localhost*"
],
browser: STRAVA_BROWSER,
},
],
};