Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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