vonox7 / Firebase Redirect to User 1

// ==UserScript==
// @name         Firebase Redirect to User 1
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  Firebase Redirect to User 1
// @copyright 2021, vonox7 (https://openuserjs.org/users/vonox7)
// @license MIT
// @author       vonox7
// @match        https://console.firebase.google.com/u/0/*
// @grant        none
// ==/UserScript==
(function () {
  'use strict';
  if (window.history.length === 1) {
    window.location.href = "https://console.firebase.google.com/u/1/" + window.location.href.substr("https://console.firebase.google.com/u/0/".length);
  }
})();