Greasy Fork is available in English.

clock barra Facebook

Facebook clock

// ==UserScript==
// @name           clock barra Facebook
// @namespace      https://greasyfork.org/users/237458
// @description    Facebook clock
// @match          https://*.facebook.com/*
// @author         figuccio
// @version        0.8
// @grant          GM_addStyle
// @grant          GM_setValue
// @grant          GM_getValue
// @grant          GM_registerMenuCommand
// @require        http://code.jquery.com/jquery-latest.js
// @require        https://code.jquery.com/ui/1.12.1/jquery-ui.js
// @license        MIT
// ==/UserScript==
var $ = window.jQuery;
var j = $.noConflict();
const body=document.body;
function clockTime() {
var today = new Date();
        var h = today.getHours();
        var m = today.getMinutes();
        var s = today.getSeconds();
        var milli = today.getMilliseconds()
        var options = {'day':'2-digit','year':'numeric','month':'2-digit','weekday':'short'};
        var date = new Date().toLocaleDateString('it-IT', options);
        if (h < 10) h = "0" + h;
        if (m < 10) m = "0" + m;
        if (s < 10) s = "0" + s;
document.getElementById('Clocktest').innerHTML =h + ":" + m + ":" + s+ ":" +milli+ " "+date;;
}
var node = document.createElement('div');
////////////
node.id = "Clocktest";
node.title = 'Time';
node.setAttribute("style","cursor:move;padding:4px;background:black;color:yellow;font-family: Orbitron;letter-spacing: 2px;top:0;font-size:16px;position:fixed;text-align:center;z-index:999999;border-radius:10px;border:2px solid red;");
document.body.appendChild(node);
setInterval(clockTime, 70);
j(node).draggable();
body.append(node);
/////////////
function myFunctionclock() {
 if (Clocktest.style.display === 'none') {
   Clocktest.style.display = 'block';
  } else {
    Clocktest.style.display = 'none';
  }
}
GM_registerMenuCommand("mostra clock/nascondi clock",myFunctionclock);