Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(function () {
- var html = $('body').html()
- //var saldo = ''
- //var i = 0;
- // while (true) { //Condición trivial: siempre cierta
- // i++;
- // alert ("Valor de i: " + i);
- //saldo === $('js-balance')
- if(html.indexOf('Error 49: La acción realizada ha presentado un error') >= 0) {
- setTimeout(function () {
- location.href=('https://tendero.moviired.co/detail-payment/90112')
- }, 500)
- }
- else{
- if (html.indexOf('Escoge pago total o pago parcial') >= 0) {
- setTimeout(function () {
- $('#pago_parcial').click()
- resaltar()
- dar_formato('2000')
- }, 100)
- setTimeout(function () {
- document.getElementById("form").submit();
- }, 500)
- } else {
- $('#number_reference').val('13930175')
- setTimeout(function () {
- document.getElementById("form").submit();
- }, 500)
- }
- }
- // if (i==9) { break;}}
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement