Skip to content

Instantly share code, notes, and snippets.

@gmelikov
Last active May 10, 2023 14:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gmelikov/b64771b34281ef0bcc5c122f42222ce2 to your computer and use it in GitHub Desktop.
Save gmelikov/b64771b34281ef0bcc5c122f42222ce2 to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name Google meet change account
// @namespace https://gmelikov.com/
// @version 0.1
// @description Autochange google account, if not defined
// @author Gmelikov
// @match https://meet.google.com/*
// @grant none
// ==/UserScript==
(function() {
'use strict';
var DEFAULT_USER_NUMBER = 2; // SET YOUR USER NUMBER HERE!
var current_location = window.location;
var url = new URL(current_location);
if (url.searchParams.get('authuser') == null) {
url.searchParams.set('authuser', DEFAULT_USER_NUMBER);
window.location.replace(url.toString());
}
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment