Skip to content

Instantly share code, notes, and snippets.

@igrmm
Created November 20, 2024 01:58
Show Gist options
  • Save igrmm/63b6d3f7da110112b4640dc6654af57b to your computer and use it in GitHub Desktop.
Save igrmm/63b6d3f7da110112b4640dc6654af57b to your computer and use it in GitHub Desktop.
naosei
// ==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