Last active
May 10, 2023 14:38
-
-
Save gmelikov/b64771b34281ef0bcc5c122f42222ce2 to your computer and use it in GitHub Desktop.
This file contains 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
// ==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