您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
clock ore minuti secondi millesimi
当前为
- // ==UserScript==
- // @name Clock luglio figuccio
- // @description clock ore minuti secondi millesimi
- // @version 0.5
- // @match *://*/*
- // @noframes
- // @author figuccio
- // @grant GM_setValue
- // @grant GM_getValue
- // @grant GM_registerMenuCommand
- // @icon data:image/gif;base64,R0lGODlhEAAQAKECABEREe7u7v///////yH5BAEKAAIALAAAAAAQABAAAAIplI+py30Bo5wB2IvzrXDvaoFcCIBeeXaeSY4tibqxSWt2RuWRw/e+UQAAOw==
- // @require http://code.jquery.com/jquery-latest.js
- // @require https://code.jquery.com/ui/1.12.1/jquery-ui.js
- // @license MIT
- // @namespace https://greasyfork.org/users/237458
- // ==/UserScript==
- var $ = window.jQuery;
- var j = $.noConflict();
- const body=document.body;
- var hour12 = true;
- function test() {
- var d = new Date();
- var options = { hour12: hour12, hour: '2-digit',minute: '2-digit',second: '2-digit'
- };
- var n = d.toLocaleTimeString('it', options);
- // var mm = d.getMilliseconds();
- // node.innerHTML = n + ":" + mm;
- node.innerHTML = n ;
- }
- var node = document.createElement('div');
- // Event listener to toggle hour12 option when the mouse moves over the element
- node.addEventListener('mousemove', function() {
- hour12 = !hour12; // Toggle hour12 between true and false
- });
- ////////////
- node.id = "luglio";
- node.title = 'trascina time';
- node.setAttribute("style","cursor:;padding:4px;background:black;color:lime;top:40px;font-family:sans-serif;font-size:14px;position:fixed;text-align:center;z-index:999999;border-radius:13px;border:2px solid red;");
- document.body.appendChild(node);
- setInterval(test, 70);
- j(node).draggable();
- body.append(node);
- ////////////