Outline ·
[ Standard ] ·
Linear+
Lazada Discussion V20 | #BuyFirstRegretLater, lalalaxx.com | pricecampers.com
|
rhytion
|
Sep 7 2017, 11:07 PM
|
|
setInterval(function() { document.querySelector('.spin-the-wheel__wheel-spin').click();
console.log('OK: ' + document.getElementsByClassName('spin-the-wheel__popup-voucher-code')[0].innerHTML);
}, getRandomInt(3000, 6500));
function getRandomInt(min, max) { return Math.floor(Math.random() * (max - min + 1)) + min; }
I suppose making the time value random would be safer?
|
|
|
|
|
|
rhytion
|
Sep 8 2017, 05:29 PM
|
|
setInterval(function() {
document.getElementsByClassName('spin-the-wheel__popup-voucher-code')[0].innerHTML = '';
document.querySelector('.spin-the-wheel__wheel-spin').click(); if(document.getElementsByClassName('spin-the-wheel__popup-voucher-code')[0].innerHTML) { console.log('Voucher: ' + document.getElementsByClassName('spin-the-wheel__popup-voucher-code')[0].innerHTML); } else { console.log('No voucher spinned'); } }, 3800);
Is there anything wrong with this code now? Trying to solve the problem in which the code continues showing a voucher when one is spinned.
|
|
|
|
|
|
rhytion
|
Sep 8 2017, 10:56 PM
|
|
QUOTE(jackiez @ Sep 8 2017, 10:54 PM) just got 1 29% just now cont trying all although 1 hour plus left method same as someone who shared earlier incognito/private mode , 1 tab , no log in , use script and pm me if anyone want 19%, i got extra 1 rly thx to those who shared tips n super script  I have 3 19% already but no luck getting 29%, guess I'm gonna try ur tip.
|
|
|
|
|
|
rhytion
|
Sep 8 2017, 11:11 PM
|
|
I'm just wondering, is there really anyone who's generous enough to donate their 29% voucher? Looking for one, not putting on much hope put miracles do happen sometime haha.
|
|
|
|
|
|
rhytion
|
Sep 8 2017, 11:15 PM
|
|
QUOTE(PrincZe @ Sep 8 2017, 11:12 PM) so when is the due date of using these vouchers? 11 Sep
|
|
|
|
|
|
rhytion
|
Sep 8 2017, 11:26 PM
|
|
With only 35 minutes left, if I get a 29% code, it would be a pure miracle lol
|
|
|
|
|
|
rhytion
|
Sep 8 2017, 11:48 PM
|
|
QUOTE(dagnarus @ Sep 8 2017, 11:47 PM) I'm going to hunt for a cheap but decent router, anyone got any suggestion, I'm not willing to spend more than 300 though  Why not get the Huawei WS880 from a forumer here in the garage sales section? RM 300 with space to nego.
|
|
|
|
|
|
rhytion
|
Sep 8 2017, 11:57 PM
|
|
Just use if you want: 5KAWdbnsj5
|
|
|
|
|
|
rhytion
|
Sep 9 2017, 12:07 AM
|
|
I doubt there's any price difference for the Redmi 4A
|
|
|
|
|
|
rhytion
|
Sep 9 2017, 12:14 AM
|
|
Now all this donation requests start....
|
|
|
|
|
|
rhytion
|
Sep 9 2017, 08:23 AM
|
|
If someone is kind enough to donate me some 29% voucher for buying something 400++, will appreciate if you could Pm me haha, if can't might as well just release here.
|
|
|
|
|
|
rhytion
|
Sep 9 2017, 08:26 AM
|
|
QUOTE(Stormknight @ Sep 9 2017, 08:25 AM) Hmm what to buy, redmi note 4? Wanred to get the seagate hdd but someone mentioned lazada drop to 240 previously kek Looking to buy the same phone as well, just hoping for 29% voucher now.
|
|
|
|
|
|
rhytion
|
Sep 9 2017, 08:34 AM
|
|
QUOTE(Keatsan @ Sep 9 2017, 08:33 AM) RN4 32gb after voucher is around 590. Quite a steal. Unless 11.11 had voucher like this. I thought it's cheaper? I saw Malaysia set selling for RM 650
|
|
|
|
|
|
rhytion
|
Sep 9 2017, 09:59 AM
|
|
QUOTE(urnicksux2 @ Sep 9 2017, 09:58 AM) So lucky...tried many time still got nothing. Any tips?
|
|
|
|
|
|
rhytion
|
Sep 9 2017, 10:08 AM
|
|
Which sector is the 29% voucher in? Time to make a script
|
|
|
|
|
|
rhytion
|
Sep 9 2017, 10:19 AM
|
|
Run this on any lazada malaysia webpage you like. CODE var getJSON = function(url) { return new Promise(function(resolve, reject) { var xhr = new XMLHttpRequest(); xhr.open('get', url, true); xhr.responseType = 'json'; xhr.onload = function() { var status = xhr.status; if (status == 200) { resolve(xhr.response); } else { reject(status); } }; xhr.send(); }); };
setInterval(function() { getJSON('http://www.lazada.com.my/ajax/lottery/spinTheWheel/?lang=en&platform=desktop&wheelToken=b5dd7e9dcbde84b3e11a9ae90d377b02&dpr=2').then(function(data) { if(data.data.voucherCode) { console.log('Voucher: ' + data.data.voucherCode); } else { console.log('no voucher'); } }, function(status) { //error detection.... alert('Something went wrong.'); }); }, 5000);
This post has been edited by rhytion: Sep 9 2017, 03:52 PM
|
|
|
|
|
|
rhytion
|
Sep 9 2017, 10:26 AM
|
|
QUOTE(pwlow @ Sep 9 2017, 10:25 AM) I want only one 29% voucher, anyone can PM me ? Appreciate your help, thanks. Me too haha, running a new script now but still no luck.
|
|
|
|
|
|
rhytion
|
Sep 9 2017, 10:27 AM
|
|
QUOTE(ljf123 @ Sep 9 2017, 10:26 AM) if change 5000 to lesser time, also can right? Yes
|
|
|
|
|
|
rhytion
|
Sep 9 2017, 10:29 AM
|
|
QUOTE(GoogleSearch @ Sep 9 2017, 10:27 AM) Using script lah, bro, now every pro sharing tips and script, If still cant get then own problem liao CODE setInterval(()=> { $.ajax({ url: "http://www.lazada.com.my/ajax/lottery/spinTheWheel/?lang=en&platform=desktop&wheelToken=b5dd7e9dcbde84b3e11a9ae90d377b02&dpr=2" }) .done(function( res ) { if ( res && res.data && res.data.voucherCode ) { alert(res.data.voucherCode); console.log( "Voucher:", res.data.voucherCode ); } else { console.log('wait') } }); }, 1000) I just made my own script and even myself get nothing
|
|
|
|
|
|
rhytion
|
Sep 9 2017, 10:33 AM
|
|
QUOTE(iwubpreve @ Sep 9 2017, 10:32 AM) not IT base. copy this to notepad and what? In Google chrome, ctrl+shift+i and paste, then press enter
|
|
|
|
|