Greasy Fork is available in English.
未更新的脚本背景显示为浅红
当前为
// ==UserScript==
// @name greasyfork显示长时间未更新脚本
// @namespace http://tampermonkey.net/
// @version 0.1
// @description 未更新的脚本背景显示为浅红
// @author AN drew
// @match http://greasyfork.icu/zh-CN/users/472487-an-drew
// @require https://lib.baomitu.com/jquery/3.5.0/jquery.min.js
// @license MIT
// @grant none
// ==/UserScript==
(function() {
'use strict';
$('dd.script-list-updated-date').each(function(){
let time1 = new Date($(this).find('gf-relative-time').attr('datetime'));
let time2 = new Date('2022/1/1');
if(time1.getTime() < time2.getTime())
{
$(this).find('gf-relative-time').css('color','red');
$(this).closest('li').css('background','#ff000008');
}
})
})();