Gmail - show full date and time in mail list

Just show the full date and time on the list instead of only short date. Useful if you need to create a report and you base on your activity and it's timing. Or when you look at mails and want to find one visually by looking on times.

  1. // ==UserScript==
  2. // @name Gmail - show full date and time in mail list
  3. // @description Just show the full date and time on the list instead of only short date. Useful if you need to create a report and you base on your activity and it's timing. Or when you look at mails and want to find one visually by looking on times.
  4. // @namespace https://www.facebook.com/zbyszek.matuszewski
  5. // @include https://mail.google.com/mail/*
  6. // @version 0.3.2
  7. // @grant none
  8. // ==/UserScript==
  9.  
  10. (function() {
  11. window.setInterval(function() {
  12. var date_titles_main = Array.from(document.getElementsByClassName("xW xY"));
  13. var date_titles_thread = Array.from(document.getElementsByClassName("g3"));
  14. date_titles_main.forEach(function(element, index, array) {
  15. var elements = element.childNodes;
  16. var title = elements.length > 0 ? elements[0].title : false;
  17. if (title && elements[0].innerHTML != title) { elements[0].innerHTML = title; }
  18. });
  19. date_titles_thread.forEach(function(element, index, array) {
  20. if (element.title && element.innerHTML != element.title) { element.innerHTML = element.title; }
  21. });
  22. Array.from(document.getElementsByClassName("xX")).forEach(function(element, index, array) {
  23. element.style.width = '20ex';
  24. });
  25. Array.from(document.getElementsByClassName("xW")).forEach(function(element, index, array) {
  26. element.style['max-width'] = '145px';
  27. element.style['flex-basis'] = '145ex';
  28. });
  29. }, 2000);
  30. })();