vonox7 / Google Meet Redirect to User 1

// ==UserScript==
// @name         Google Meet Redirect to User 1
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  Google Meet Redirect to User 1
// @copyright 2021, vonox7 (https://openuserjs.org/users/vonox7)
// @license MIT
// @author       vonox7
// @match        https://meet.google.com/*
// @grant        none
// ==/UserScript==
(function () {
  'use strict';
  if (window.history.length === 1 && window.location.href.indexOf("authuser") === -1) {
    if (window.location.href.indexOf("?") === -1) {
      window.location.href += "?authuser=1";
    }
    else {
      window.location.href += "&authuser=1";
    }
  }
})();