您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
未更新的脚本背景显示为浅红
// ==UserScript== // @name greasyfork显示长时间未更新脚本 // @namespace http://tampermonkey.net/ // @version 0.1.1 // @description 未更新的脚本背景显示为浅红 // @author AN drew // @match https://greasyfork.org/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('relative-time').attr('datetime')); let time2 = new Date(); if(time2.getTime()-time1.getTime() > 3*30*24*60*60*1000) { $(this).find('relative-time').css('color','red'); $(this).closest('li').css('background','#ff000008'); } }) })();