以绝对时间 (yyyy-mm-dd) 显示 YouTube 的视频上传日期

显示具体日期而不是“2 星期前”,“1 年前”这种

< 脚本 以绝对时间 (yyyy-mm-dd) 显示 YouTube 的视频上传日期 的反馈

评价:好评 - 脚本运行良好

§
发布于:2025-05-08

To get both types like "5 hours ago - 2025-05-08" you need to replace this:

uploadDate = isoToDate(uploadDate);
holder.firstChild.nodeValue = uploadDate;
el.setAttribute('data-text', uploadDate);

with this:

let formattedDate = isoToDate(uploadDate);
holder.firstChild.nodeValue = dateText + ' - ' + formattedDate;
el.setAttribute('data-text', dateText + ' - ' + formattedDate);

You will get total of 9 replacements in this file at the end.

§
发布于:2025-05-08

Works like a charm! Thank you so much!

InMirrors作者
§
发布于:2025-06-01

Thank you for your suggestion. I've updated the script to show both date types for newly uploaded videos.

发布留言

登录以发布留言。