Created
August 28, 2018 17:27
-
-
Save MaikeMota/fa591f66bc95495713e3e2f695f2f540 to your computer and use it in GitHub Desktop.
Nubank Bills Download
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
let billsToCSV = []; | |
document.querySelectorAll('[ng-click]').forEach((item, i)=> { | |
let text = item.textContent; | |
if(text !== undefined && text.indexOf("Exportar para CSV") > 0){ | |
billsToCSV.push(item); | |
} | |
}); | |
billsToCSV.forEach((item, index) => { | |
setTimeout(()=>{ | |
item.click(); | |
}, (index * 1000 ) + 1000) | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uso: Entre em sua conta do Nubank pelo Web App, abra o Console de Desenvolvedor e rode o código acima.