Greasy Fork 支持简体中文。

LT员工季度互评自动填分数

员工季度互评自动填分数!

// ==UserScript==
// @name         LT员工季度互评自动填分数
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  员工季度互评自动填分数!
// @author       wenyc15
// @match        http://10.80.129.32/OTHERSYSTEM/ehrjxkh/QuarterGZ/MutualEvaluation.aspx?*
// @icon         https://www.google.com/s2/favicons?domain=129.32
// @grant        none
// ==/UserScript==

(function() {
    'use strict';
    window.onload = function () {
        var lstA = document.querySelectorAll('input[id^="txtA"]');
        var lstB = document.querySelectorAll('input[id^="txtB"]');
        var lstC = document.querySelectorAll('input[id^="txtC"]');
        for( var i = 0; i< lstA.length ;i++){
            lstA[i].value = Math.floor(Math.random()*(3)+37)
            lstB[i].value = Math.floor(Math.random()*(3)+27)
            lstC[i].value = Math.floor(Math.random()*(3)+27)
        }


    }
    // Your code here...
})();