Created
November 20, 2024 01:58
-
-
Save igrmm/63b6d3f7da110112b4640dc6654af57b to your computer and use it in GitHub Desktop.
naosei
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name XXXX.br | |
// @namespace Violentmonkey Scripts | |
// @match https://sei.XXXX.br/sei/controlador.php | |
// @grant none | |
// @version 1.0 | |
// @author - | |
// @description 6/27/2023, 10:19:37 PM | |
// ==/UserScript== | |
const regex = /(?<=\')(.*?)(?=\')/; | |
const tabela_recebidos = document.getElementById("tblProcessosRecebidos"); | |
for(let i = 1; i < tabela_recebidos.rows.length; i++){ | |
const processo = tabela_recebidos.rows[i].cells[2]; | |
const especificacao = processo.firstElementChild.attributes.item(2).value.match(regex)[0].substring(0, 40); | |
if(especificacao) | |
processo.firstElementChild.innerHTML = especificacao; | |
} | |
const tabela_gerados = document.getElementById("tblProcessosGerados"); | |
for(let i = 1; i < tabela_gerados.rows.length; i++){ | |
const processo = tabela_gerados.rows[i].cells[2]; | |
const especificacao = processo.firstElementChild.attributes.item(2).value.match(regex)[0].substring(0, 40); | |
if(especificacao) | |
processo.firstElementChild.innerHTML = especificacao; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment