Created
December 3, 2020 20:38
-
-
Save StefanKarpinski/58b3650f8cf2df3489359f4a1b7dbf67 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
defaultBrowser: "Safari", | |
options: { hideIcon: true }, | |
rewrite: [ | |
{// rewrite meet.google.com URLs with `authuser=1` query string | |
match: ({ url }) => url.host == "meet.google.com", | |
url: ({ url }) => { | |
var parts = url.search == "" ? [] : | |
url.search.split(/[&;]/).filter( | |
part => !part.startsWith("authuser=") | |
); | |
parts.push("authuser=1") | |
return { ...url, "search": parts.join("&") } | |
}, | |
} | |
], | |
handlers: [ | |
{// open meet.google.com in Chrome | |
match: ({ url }) => url.host == "meet.google.com", | |
browser: "Google Chrome" | |
} | |
] | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment