Skip to content

Instantly share code, notes, and snippets.

@StefanKarpinski
Created December 3, 2020 20:38
Show Gist options
  • Save StefanKarpinski/58b3650f8cf2df3489359f4a1b7dbf67 to your computer and use it in GitHub Desktop.
Save StefanKarpinski/58b3650f8cf2df3489359f4a1b7dbf67 to your computer and use it in GitHub Desktop.
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