Dear All,
Good day. I have tried to follow the script since 2 days ago but so far only get one 5% & one 9% voucher. I am using Chrome without incognito mode to run the script.
May i know is my step wrong in order to run the script? Wondering why no luck to get a single 29kaw voucher? Appreciate your assistance to check my script below.
On Chrome
1. Install tempermonkey
2. Click on tempermonkey, create new script, then paste this script(copied from this tered), then saved it
// ==UserScript==
// @name New Userscript
// @namespace
http://tampermonkey.net/// @version 0.1
// @description try to take over the world!
// @author You
// @match
http://www.lazada.com.my/helpcenter/// @grant none
// ==/UserScript==
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);
alert('Voucher: ' + data.data.voucherCode);
}
else { console.log('no voucher'); }
}, function(status) { //error detection....
alert('Something went wrong.');
}); }, 1000);
3. Install SessionBox plugin
4. Open
http://www.lazada.com.my/helpcenter/5. Press Ctrl+Shift+A to open new temporary session tab
6. Press Ctrl+Shit+J to open console
7. Wait till been notified for the voucher.
*i have restarted few time modem & desktop.
finally i got it going with the script!!! is this correct guys? help me check my screenshot. the bottom there show 111 no voucher means its keep on going rite???