oa test

oa modification

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

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

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

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.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

// ==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);
})();