asicentral

Automaticamente seleciona o Almoxarifado CENTRAL no ASI

当前为 2023-07-17 提交的版本,查看 最新版本

// ==UserScript==
// @name         asicentral
// @namespace    asicentral
// @version      1.0
// @description  Automaticamente seleciona o Almoxarifado CENTRAL no ASI
// @author       Your Name
// @match        https://asiweb.tre-rn.jus.br/asi/web?target=com.linkdata.almoxweb.consultageral.web.ConsultaMaterialEditGateway&action=start
// @grant        none
// @license MIT
// ==/UserScript==

(function() {
    'use strict';

    function fillInputAndClickButton() {
        var inputElement = document.querySelector('#ext-gen88');
        var buttonElement = document.querySelector('#ext-gen6');

        if (inputElement && buttonElement) {
            inputElement.value = 'CENTRAL';
            buttonElement.click();
        }
    }

    setTimeout(function() {
        fillInputAndClickButton();
    }, 3000);
})();