CRF 2

Automatiza a consulta de Regularidade do Empregador

Dovrai installare un'estensione come Tampermonkey, Greasemonkey o Violentmonkey per installare questo script.

Dovrai installare un'estensione come Tampermonkey o Violentmonkey per installare questo script.

Dovrai installare un'estensione come Tampermonkey o Violentmonkey per installare questo script.

Dovrai installare un'estensione come Tampermonkey o Userscripts per installare questo script.

Dovrai installare un'estensione come ad esempio Tampermonkey per installare questo script.

Dovrai installare un gestore di script utente per installare questo script.

(Ho già un gestore di script utente, lasciamelo installare!)

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

(Ho già un gestore di stile utente, lasciamelo installare!)

// ==UserScript==
// @author       Dione Ramos
// @name         CRF 2
// @version      0.5
// @description  Automatiza a consulta de Regularidade do Empregador
// @require      http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js
// @match        https://www.sifge.caixa.gov.br/*
// @grant        none
// @namespace https://greasyfork.org/users/23504
// ==/UserScript==
/* jshint -W097 */

var url = window.location.href;

 if(url == "https://www.sifge.caixa.gov.br/Cidadao/Crf/Crf/FgeCfSConsultaRegularidade.asp"){
    
    Redirect('FgeCfSPesquisaMotivo.asp'); 
	 
 }else if(url == "https://www.sifge.caixa.gov.br/Cidadao/Crf/Crf/FgeCfSPesquisaMotivo.asp"){
    
    $("input[value='99']").prop('checked', true);
    ValidarSelecao();
	 
 }else if(url == "https://www.sifge.caixa.gov.br/Cidadao/Crf/Crf/FgeCfSImprimirCrf.asp"){
     
     Imprime();
	 
 }else if(window.location.pathname == "/Empresa/Crf/Crf/FgeCFSImprimirPapel.asp"){
    
     window.print();
 }