-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathfinicky.js
More file actions
47 lines (45 loc) · 1.16 KB
/
finicky.js
File metadata and controls
47 lines (45 loc) · 1.16 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
export default {
defaultBrowser: "Safari",
rewrite: [
// Skip Microsoft Office link protection which significantly slows down opening URLs
{
match: /https:\/\/(\w+\.safelinks\.protection\.outlook\.com\/|statics\.teams\.cdn\.office\.net\/evergreen-assets\/safelinks\/2\/atp-safelinks.html)/,
url: url => url.searchParams.get("url") || url
},
// Strip UTM parameters
{
match: /[?&]utm_\w+=/,
url: url => {
const params = url.searchParams;
for (const key of [...params.keys()]) {
if (/^utm_/.test(key)) {
params.delete(key);
}
}
return url
}
},
],
handlers: [
// Open Google products (except search) in Chromium
{
match: [/(?<!www)\.google\.com\/.*/, "*.goo.gl/*", "*.google/*"],
browser: "Chromium"
},
// Figma
{
match: /www\.figma\.com\/(?!app_auth|email\/).*/,
browser: "Figma"
},
// Microsoft Teams
{
match: "teams.microsoft.com/*",
browser: "Microsoft Teams"
},
// Notion
{
match: /www\.notion\.so\/(?!(invoice\/|passkeyauthverify)).*/,
browser: "Notion"
},
]
}