您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Highlight current hour in meteoblue "Astronomy Seeing"-table
// ==UserScript== // @name Meteoblue Astro Now // @namespace http://tampermonkey.net/ // @version 1.0 // @description Highlight current hour in meteoblue "Astronomy Seeing"-table // @author Groodion // @match https://www.meteoblue.com/de/wetter/outdoorsports/seeing/* // @grant none // @license MIT // ==/UserScript== (function() { 'use strict'; let styleElement = document.createElement('style'); document.head.appendChild(styleElement); let styleSheet = styleElement.sheet; styleSheet.insertRule('.now>td:nth-child(-n+4) { border: 1px solid red }', 0); let line = null; function update() { if(line) line.classList.remove("now"); line = document.querySelector(`tr[data-day="0"][data-hour="${new Date().getHours()}"]`); if(!line) { line = document.querySelector(`tr[data-day="1"][data-hour="${new Date().getHours()}"]`); } line.classList.add("now"); } setInterval(update, 60000); update(); })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址