您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
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.
// ==UserScript== // @name Gmail - show FORMATTED full date and time in mail list // @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. // @include https://mail.google.com/mail/* // @version 0.0.1.20180924133221 // @namespace https://gf.qytechs.cn/users/153157 // ==/UserScript== var formatDate = function(dateString) { var dateTime = new Date(dateString); var date = dateTime.toISOString().split('T')[0]; var time = dateTime.toTimeString().substr(0, 5); return `${date} ${time}`; }; (function() { window.setInterval(function() { var date_titles_main = Array.from(document.getElementsByClassName("xW xY")); var date_titles_thread = Array.from(document.getElementsByClassName("g3")); date_titles_main.forEach(function(element, index, array) { var elements = element.childNodes; var title = elements.length > 0 ? elements[0].title : false; if (title) { title = formatDate(title); } if (title && elements[0].innerHTML != title) { elements[0].innerHTML = title; } }); date_titles_thread.forEach(function(element, index, array) { if (element.title && element.innerHTML != element.title) { element.innerHTML = formatDate(element.title); } }); Array.from(document.getElementsByClassName("xX")).forEach(function(element, index, array) { element.style.width = '20ex'; }); }, 2000); })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址