Last active
February 22, 2019 22:29
-
-
Save almirb/6cff4fcde88d60ffd360fa8e72ba262e to your computer and use it in GitHub Desktop.
LeãoHelper
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 LeaoHelper | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description Script auxiliar do aplicativo Leão. | |
// @author Almir Bolduan | |
// @include https://extratoir.inss.gov.br/irpf01/pages/consultarExtratoIR.xhtml* | |
// @grant none | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
// Your code here... | |
//console.log(window.location.href); | |
var parts = window.location.href.replace(/[?&]+([^=&]+)=([^&]*)/gi, function(m,key,value) { | |
var element = document.getElementsByName(key)[0]; | |
if (element !== undefined) { | |
element.value = value; | |
} | |
}); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment