clock Facebook figuccio data-time

data ora calendario

目前為 2023-04-22 提交的版本,檢視 最新版本

// ==UserScript==
// @name          clock Facebook figuccio data-time
// @namespace     https://gf.qytechs.cn/users/237458
// @version       0.6
// @author        figuccio
// @description   data ora calendario
// @match         https://*.facebook.com/*
// @match         https://*.facebook.com/me/*
// @grant         GM_addStyle
// @grant         GM_setValue
// @grant         GM_getValue
// @grant         GM_registerMenuCommand
// @require       https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js
// @run-at        document-start
// @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==
// @require       https://gf.qytechs.cn/scripts/12228/code/setMutationHandler.js
// @noframes
// @license        MIT
// ==/UserScript==
   ///////////////////////time///////////
var $ = window.jQuery;
var j = $.noConflict();
//avvia la funzione dopo che la pagina e stata caricata
$(document).ready(function() {
var body=document.body;
var style="position:fixed; top:-13px;margin-left:760px;z-index:99999;"
var box=document.createElement("div");

box.id="mydata";
box.style=style;
j(box).draggable();
body.append(box);

function prova(){
var box = document.getElementById('mydata');
box.style.display = ((box.style.display!='none') ? 'none' : 'block');
}
GM_registerMenuCommand("nascondi/mostra time",prova);
///////////////////////////////////////////////////////////////
   //Imposta lo stile CSS degli elementi nel menu
        GM_addStyle(`
  #setuiclock{width:auto;height:25px; margin-top:-12px;margin-left:-12px; margin-right:-12px;margin-bottom:0px;border-width:1px;}

  input[type="datetime-local"] { background:#3b3b3b;color:lime;border:1px solid yellow; border-radius: 5px;margin:9px;text-align:center;}

            `);

setInterval(function(){
let today = new Date();
today.setMinutes(today.getMinutes() - today.getTimezoneOffset());
document.getElementById('datePicker1').value = today.toISOString().slice(0, -1);
}, 70);

 //elemento html nel div readonly datatime non fa comparire licona del calendario
    box.innerHTML=`
                      </p>
                              <fieldset style="background:#3b3b3b; border: 2px solid red;color:lime;border-radius:7px;text-align:center;">
                                   <legend>DATA-TIME</legend>
   <div id=setuiclock>
<input readonly id="datePicker1" type="datetime-local" title="Data-ora"/>
                                                    </p>
                    </div>
                    </fieldset>
            `;

})();

QingJ © 2025

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