Gmail - Classic Two Row and less bold

This script tries to undo some of the most annoying changes in GMail's new version that cannot be changed in the settings.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey, το Greasemonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

You will need to install an extension such as Tampermonkey to install this script.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Userscripts για να εγκαταστήσετε αυτόν τον κώδικα.

You will need to install an extension such as Tampermonkey to install this script.

Θα χρειαστεί να εγκαταστήσετε μια επέκταση διαχείρισης κώδικα χρήστη για να εγκαταστήσετε αυτόν τον κώδικα.

(Έχω ήδη έναν διαχειριστή κώδικα χρήστη, επιτρέψτε μου να τον εγκαταστήσω!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Έχω ήδη έναν διαχειριστή στυλ χρήστη, επιτρέψτε μου να τον εγκαταστήσω!)

// ==UserScript==
// @name        Gmail - Classic Two Row and less bold
// @description This script tries to undo some of the most annoying changes in GMail's new version that cannot be changed in the settings.
// @include     https://mail.google.com/mail/*
// @version 0.0.2
// @namespace
// @namespace https://greasyfork.org/users/217251
// ==/UserScript==

(function() {
  window.setInterval(function() {

    // Less bold
    Array.from(document.getElementsByClassName("zF")).forEach(function(element, index, array) {
      element.style.fontWeight = '500';
    });
    Array.from(document.getElementsByClassName("bqe")).forEach(function(element, index, array) {
      element.style.fontWeight = '500';
    });
    Array.from(document.getElementsByClassName("bq3")).forEach(function(element, index, array) {
      element.style.fontWeight = '500';
    });

    // Two row layout
    Array.from(document.getElementsByClassName("xY")).forEach(function(element, index, array) {
      element.style.minHeight = '50px';
    });
    Array.from(document.getElementsByClassName("xY")).forEach(function(element, index, array) {
      element.style.verticalAlign = 'middle';
    });
    Array.from(document.getElementsByClassName("y6")).forEach(function(element, index, array) {
      element.style.display = 'table';
    });
    Array.from(document.getElementsByClassName("xT")).forEach(function(element, index, array) {
      element.style.display = 'table';
    });
    Array.from(document.getElementsByClassName("Zt")).forEach(function(element, index, array) {
      element.style.display = 'none';
    });

    // Less space between sender and subject
    Array.from(document.getElementsByClassName("yX")).forEach(function(element, index, array) {
      element.style.paddingRight = '0px';
    });

    // Hide the bar on the right
    Array.from(document.getElementsByClassName("bAw")).forEach(function(element, index, array) {
      element.style.display = 'none';
    });
  }, 500);
})();