您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Displays a clock in the Waze Editor
当前为
// ==UserScript== // @name Waze Editor Clock // @namespace waze-editor-clock // @version 1.2 // @description Displays a clock in the Waze Editor // @author Bard // @match https://www.waze.com/ja/editor?env=row // @grant none // ==/UserScript== (function() { 'use strict'; // Clock element const clockElement = document.createElement('div'); clockElement.id = 'waze-editor-clock'; clockElement.style.cssText = ` position: fixed; bottom: 20px; left: 51%; transform: translateX(-50%); z-index: 1000; background-color: #fff; padding: 10px; border: 1px solid #ccc; font-size: 23px; `; // Update clock every second setInterval(() => { const date = new Date(); const hours = date.getHours().toString().padStart(2, '0'); const minutes = date.getMinutes().toString().padStart(2, '0'); // Remove seconds from the clock display clockElement.textContent = `${hours}:${minutes}`; }, 1000); // Append clock element to the body document.body.appendChild(clockElement); })();