Clock1

Clock in basso alle pagine colore blu e rosso

当前为 2023-08-31 提交的版本,查看 最新版本

// ==UserScript==
// @name           Clock1
// @description    Clock in basso alle pagine colore blu e rosso
// @author         figuccio
// @version        0.6
// @match          *://*/*
// @require        http://code.jquery.com/jquery-latest.js
// @require        https://code.jquery.com/ui/1.12.1/jquery-ui.js
// @icon           data:image/gif;base64,R0lGODlhEAAQAKECABEREe7u7v///////yH5BAEKAAIALAAAAAAQABAAAAIplI+py30Bo5wB2IvzrXDvaoFcCIBeeXaeSY4tibqxSWt2RuWRw/e+UQAAOw==
// @license        MIT
// @namespace      https://gf.qytechs.cn/users/237458
// ==/UserScript==
(function() {
'use strict';
var $ = window.jQuery;
var j = $.noConflict();
//avvia la funzione dopo che la pagina e stata caricata
$(document).ready(function() {
const body=document.body;
if (window.top != window.self) return;
var box = document.createElement("div");
box.setAttribute("style","top:500px;width:350px;margin:10px;color:red;border-radius:10px;border:2px solid green;font-family:sans-serif;font-size:16pt;background-color:blue;position:fixed;text-align:center;z-index:99999;");
document.body.appendChild(box);

function tick(){
	var d = new Date();
    var t = d.toLocaleTimeString();
    var ms = new Date().getMilliseconds();//millisecondi
   ////////////////short  long
var date = new Date().toLocaleString('it', {'weekday': 'long', 'month': '2-digit', 'day': '2-digit','year':'numeric'});
box.innerHTML =date + " " + t+ ":" +ms


}
j(box).draggable();
body.append(box);
tick();
setInterval(tick, 70);


})();
})();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址