Clock figuccio

clock ore minuti secondi data

当前为 2020-01-18 提交的版本,查看 最新版本

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// ==UserScript==
// @name        Clock figuccio
// @description clock ore minuti secondi data
// @version     1.3
// @include     *
// @noframes
// @author      figuccio
// @grant       GM_setValue
// @grant       GM_getValue
// @grant       GM_registerMenuCommand
// @icon        data:image/gif;base64,R0lGODlhEAAQAKECABEREe7u7v///////yH5BAEKAAIALAAAAAAQABAAAAIplI+py30Bo5wB2IvzrXDvaoFcCIBeeXaeSY4tibqxSWt2RuWRw/e+UQAAOw==
// @namespace https://greasyfork.org/users/237458
// ==/UserScript==
/*inserire questo per disattivare alcune funzioni allinizio e alla fine del codice short long*/
function updateClock() {
let options = {'day':'2-digit','year':'numeric','month':'long','weekday':'long',hour:'2-digit',minute:'numeric',second:'numeric',hour12: false};
let time = new Date().toLocaleString('it-IT', options);
node.innerHTML = time;
}
let node = document.createElement('div');
node.setAttribute("style", "bottom: ;padding:5px;background:red;color:white;font-family:sans-serif;font-size:15px;top:0;right:0;position:fixed;text-align:center;z-index:999999;border-radius:10px;border:2px solid blue;");
document.body.appendChild(node);
setInterval(() => updateClock(), 1000);
         //mostra nascondi time
    function myFunction1() {
  if (node.style.display === 'none') {
    node.style.display = 'block';
  } else {
    node.style.display = 'none';
  }
}
GM_registerMenuCommand("mostra/nascondi",myFunction1);


  function myFunction10() {
  if (node.style.margin === '590px 0px') {
    node.style.margin = '0px';
  } else {
    node.style.margin = '590px 0px';
  }
}
GM_registerMenuCommand("giu ►su ►",myFunction10);

  function myFunction1f() {
  if (node.style.margin === '0px 1277px') {
    node.style.margin = '512px 1277px';
  } else {
    node.style.margin = '0px 1277px';
  }
}
GM_registerMenuCommand("left su◄left giu◄",myFunction1f);