Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name Adiciona Link de Boleto
- // @version 0.1
- // @description Verificar se a lista de contratos estão de acordo e puxa-los
- // @author Guilherme Geronimo
- // @match file:///home/arthur/caixa.html
- // @match1 http://ciweb4.extranet.caixa/ciweb2.0/Recebimento/V034721501/
- // @grant none
- // @require http://code.jquery.com/jquery-3.4.1.min.js
- // ==/UserScript==
- $(document).ready(function(){
- alert("agora vai");
- atualizar_link();
- });
- //$("#opcCON").mouseup(function() {atualizar_link();});
- //$("#TxtCONIDENTIFICACAO").onfocusout = function(){atualizar_link();};
- function atualizar_link(){
- var label = document.getElementsByTagName("label")[3];
- if( label === undefined ){ return true;}else{alert('fodeo');}
- var campos = label.innerHTML.split(':')[3];
- var contrato = campos.replace(/\D/g,'');
- alert(contrato);
- var url = '<a href="http://siga.caixa/sistema/siga/hab_boleto_incorp.asp?contrato='+contrato+'"> : Link para o Boleto</a>' ;
- label.innerHTML = ". :::" + contrato + url + " ::: .";
- }
Advertisement
Add Comment
Please, Sign In to add comment