I use script from here, probably from you, and add it into tempermonkey
Here my latest method
1. Install tempermonkey
2. Click on tempermonkey, create new script, then paste this script(copied from this tered), then saved it
» Click to show Spoiler - click again to hide... «
CODE
// ==UserScript==
// @name Lazada Wheel Script
// @namespace Lazada Wheel
// @version 0.1
// @description 29% Aimer
// @author Various Ktard
// @match http://www.lazada.com.my/helpcenter/
// @run-at document-start
// @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. Repeat step 5 and 6 until you have how many session tab you want
8. You will get notified, copy the code and close that tab that already get voucher
9. Repeat step 5&6 to create new tab to replace the tab you had closed
*in my computer somehow need to open console for the code to loop more than 1000times. If I dont open console the script stuck at 1000th time. So I add step 6 to solve this.
Got my first 29% Voucher by using this script. Thanks to the sifu for sharing