您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Display a clock at the bottom center of Waze Editor page
当前为
// ==UserScript== // @name Waze Editor Clock // @namespace http://tampermonkey.net/ // @version 0.1 // @description Display a clock at the bottom center of Waze Editor page // @author Your Name // @match https://www.waze.com/*/* // @grant none // ==/UserScript== (function() { 'use strict'; // Create a clock element var clock = document.createElement('div'); clock.style.position = 'fixed'; clock.style.bottom = '27px'; // Adjust the position as needed clock.style.left = '50%'; clock.style.transform = 'translateX(-50%)'; clock.style.color = 'white'; clock.style.fontSize = '40px'; clock.style.fontFamily = 'Arial, sans-serif'; clock.style.zIndex = '9999'; // Function to update the clock function updateClock() { var now = new Date(); var hours = now.getHours(); var minutes = now.getMinutes(); var seconds = now.getSeconds(); var timeString = ('0' + hours).slice(-2) + ':' + ('0' + minutes).slice(-2) + ':' + ('0' + seconds).slice(-2); clock.textContent = timeString; } // Initial update updateClock(); // Update the clock every second setInterval(updateClock, 1000); // Append the clock to the document body document.body.appendChild(clock); })();