您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Muda a cor e aumenta o tamanho do texto de recurso.
// ==UserScript== // @name Mudar Cor e Tamanho do Texto de Recurso (Réu) - PROJUDI // @namespace http://tampermonkey.net/ // @version 1.0 // @description Muda a cor e aumenta o tamanho do texto de recurso. // @author Levi Raniere // @match https://projudi.tjba.jus.br/projudi/listagens/DadosProcesso* // @grant none // @license MIT // ==/UserScript== (function() { 'use strict'; // Função para mudar a cor e aumentar o tamanho do texto function mudarCorETamanhoDoTexto(texto) { var elementos = document.querySelectorAll('body *:not(script):not(style)'); for (var i = 0; i < elementos.length; i++) { var elemento = elementos[i]; for (var j = 0; j < elemento.childNodes.length; j++) { var node = elemento.childNodes[j]; if (node.nodeType === 3) { // Nó de texto var textoNode = node.nodeValue; var regex = new RegExp('(' + texto + ')', 'g'); if (regex.test(textoNode)) { var substituto = textoNode.replace(regex, '<span style="color: #FF0000; font-size: larger; font-size: larger; font-size: larger; font-size: larger;">$1</span>'); var tempDiv = document.createElement('div'); tempDiv.innerHTML = substituto; while (tempDiv.firstChild) { elemento.insertBefore(tempDiv.firstChild, node); } elemento.removeChild(node); } } } } } // Mudar a cor e aumentar o tamanho dos textos especificados mudarCorETamanhoDoTexto("Réu|réu|RÉU|ré|Ré|RÉ"); })();