oa test

oa modification

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(У мене вже є менеджер скриптів, дайте мені встановити його!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript== 
// @name         oa test 
// @version      0.6
// @description  oa  modification
// @author       Weismann 
// @match        *://oa.sspu.edu.cn/*
// @license      GPL License
// @grant        GM_download
// @grant        GM_openInTab
// @grant        GM_setValue
// @grant        GM_getValue
// @grant        GM_xmlhttpRequest
// @grant        GM_addStyle
// @grant        unsafeWindow
// @grant        GM_setClipboard
// @grant        GM_getResourceURL
// @grant        GM_getResourceText
// @grant        GM_info
// @grant        GM_registerMenuCommand
// @run-at       document-end
// @connect      *
// @namespace https://greasyfork.org/users/710039
// ==/UserScript==

function date(){
        var date = new Date();
        var year = date.getFullYear(); 
        var month = date.getMonth() + 1; 
        month= month < 10 ? ('0' + month) : month;
        var day = date.getDate(); 
        day = day < 10 ? ('0' + day) : day;
        return year + '-' + month + '-' + day;
      };
function date1(){
        var date = new Date();
        var year = date.getFullYear(); 
        var month = date.getMonth() + 1; 
        month= month < 10 ? ('0' + month) : month;
        var day = date.getDate(); 
        day = day < 10 ? ('0' + day) : day;
        day = day - 1;
        return year + '-' + month + '-' + day;
      };
var t = date1();
(function() {
setInterval(function(){
var d = document.getElementById("divWfBill").childNodes[1].contentDocument;
d.getElementsByTagName('span')[53].innerHTML = date();
d.getElementsByTagName('span')[109].innerHTML = t+" &nbsp  10:54:42";
d.getElementsByTagName('span')[116].innerHTML = t+" &nbsp  07:48:51";
     },100);
})();