Sauvegarde / GDrive convenience

// ==UserScript==
// @name         GDrive convenience
// @namespace    https://openuserjs.org/users/Sauvegarde
// @version      0.2
// @author		 Sauvegarde
// @description  Removes "buy more space" button in bottom left corner.
// @match        https://drive.google.com/drive/*
// @grant        none
// @iconURL      https://drive.google.com/favicon.ico
// @updateURL    https://openuserjs.org/meta/Sauvegarde/GDrive_convenience.meta.js
// @downloadURL  https://openuserjs.org/install/Sauvegarde/GDrive_convenience.user.js
// @copyright	 2021, Sauvegarde (https://openuserjs.org/users/Sauvegarde)
// @license		 MIT
// ==/UserScript==

/* jshint esversion: 6 */

(() => {
    'use strict';

	function removeBuyMoreSpace() {
		const quota = document.querySelector("a[data-target=quota]");
		if(quota) {
			const buyMoreSpace = quota.nextElementSibling;
			if (buyMoreSpace) {
				buyMoreSpace.style.display = "none";
			}
		}
	}

	// Remove the annoying, badly formatted button
	setInterval(() => removeBuyMoreSpace(), 500);

	// Expand my remote stuff
	const expanders = document.querySelectorAll("[data-target=expander]");
	if(expanders && expanders.length > 0) {
		const myDrive = expanders[0];
		myDrive.click();
	}
})();