Clock luglio figuccio

clock ore minuti secondi millesimi

当前为 2022-07-04 提交的版本,查看 最新版本

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name         Clock luglio figuccio
// @description  clock ore minuti secondi millesimi
// @version      0.2
// @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==
let $ = window.jQuery;
var j = $.noConflict();
const body=document.body;
function test() {
    var d = new Date();
    var n = d.toLocaleTimeString('en-US', { hour12: false,hour:'2-digit', minute:'2-digit',second:'2-digit'});
    var mm;
    mm = d.getMilliseconds();
    node.innerHTML =n+":"+ mm;}
let node = document.createElement('div');
////////////
node.id = "luglio";
node.title = 'trascina time';
node.setAttribute("style","cursor:move;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:33px;border:2px solid red;");
document.body.appendChild(node);
setInterval(() => test(), 70);
j(node).draggable();
body.append(node);
////////////