NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript==
// @name Tamper_Lazada_claim_voucher
// @namespace http://tampermonkey.net/
// @version 1.4
// @description try to take over the world!
// @author You
// @match https://www.lazada.vn/*
// @match https://pages.lazada.vn/wow/*
// @license MIT
// @grant none
// @run-at document-end
// @updateURL https://openuserjs.org/meta/qinh99/Tamper_Lazada_claim_voucher.meta.js
// @downloadURL https://openuserjs.org/install/qinh99/Tamper_Lazada_claim_voucher.user.js
// @copyright 2021, qinh99 (https://openuserjs.org/users/qinh99)
// ==/UserScript==
(function() {
var currentdate = new Date();
var datetime = currentdate.toLocaleTimeString('en-GB');
var timeInter = new Date('1-21-2021 12:00:00') - currentdate;
var urlCheck = window.location.href;
if(urlCheck.includes('www.lazada.vn'))
{
setInterval(function(){
window.location = 'https://pages.lazada.vn/wow/gcp/route/lazada/vn/upr_1000345_lazada/channel/vn/upr-router/vn?spm=a2o4n.home.0.0.19056afesLJsEC&wx_navbar_transparent=true&hybrid=1&data_prefetch=true&wh_pid=/lazada/megascenario/vn/tet-2021/mega-tet-21-chot-don';
}, timeInter);
}
if(urlCheck.includes('pages.lazada.vn'))
{
window.onload = function(){
var y = document.getElementsByClassName('voucher-slider-wrapper-inner');
var x = y[0].getElementsByClassName('text');
for(var i = x.length - 1 ; i > 0 ; i--)
{
if( ( x[i].style.color == "rgb(245, 28, 67)" && x[i].innerText > 40.000 ))
{
x[i].click();
}
}
}
setTimeout(function(){
window.location = 'https://pages.lazada.vn/wow/gcp/route/lazada/vn/upr_1000345_lazada/channel/vn/upr-router/vn?spm=a2o4n.home.0.0.19056afesLJsEC&wx_navbar_transparent=true&hybrid=1&data_prefetch=true&wh_pid=/lazada/megascenario/vn/tet-2021/mega-tet-21-chot-don';
; }, 4000);
};
})();