【脚本&代码】苏宁超市198-100自动兑换【增加书签打开方式

原创 手机做任务赚零花项目  2017-12-07 11:06 

简介:自动判断时间跳转到对应的10、14、16、18、20不同场次的198-100,苏宁服务器时间到点自动模拟点击领取;需要自备50云钻;
脚本地址:
https://greasyfork.org/zh-CN/scripts/34950
复制代码
10点场:
https://yzdh.suning.com/yzdh-web/exchange/voucher1680.htm
复制代码
14点场:
https://yzdh.suning.com/yzdh-web/exchange/voucher1681.htm
复制代码
16点场:
https://yzdh.suning.com/yzdh-web/exchange/voucher1682.htm
复制代码
18点场:
https://yzdh.suning.com/yzdh-web/exchange/voucher1683.htm
复制代码
20点场:
https://yzdh.suning.com/yzdh-web/exchange/voucher1684.htm
复制代码

代码运行正确判断方法,出现苏宁的北京时间(如下图):

油猴脚本的使用方法:https://coderschool.cn/2210.html
JS代码
javascript:( function(){
var timestamp,n,url=window.location.href;
var t1 = setInterval(function (){
$.ajax({
url: '//quan.suning.com/getSysTime.do',
type: 'get',
dataType: 'json',
async: false,
success: function (res) {
timestamp=res.sysTime1;
n = Number(timestamp.substring(8));
$('.time').html('当前服务器时间:'+res.sysTime2);
}
});
},500);
function jumpUrl(){
if(n>=0&&n<=100000&&url.indexOf('1680')<0){ window.location.href = "https://yzdh.suning.com/yzdh-web/exchange/voucher1680.htm"; }else if(n>100000&&n<=140000&&url.indexOf('1681')<0){ window.location.href = "https://yzdh.suning.com/yzdh-web/exchange/voucher1681.htm"; }else if(n>140000&&n<=160000&&url.indexOf('1682')<0){ window.location.href = "https://yzdh.suning.com/yzdh-web/exchange/voucher1682.htm"; }else if(n>160000&&n<=180000&&url.indexOf('1683')<0){ window.location.href = "https://yzdh.suning.com/yzdh-web/exchange/voucher1683.htm"; }else if(n>180000&&n<=200000&&url.indexOf('1684')<0){ window.location.href = "https://yzdh.suning.com/yzdh-web/exchange/voucher1684.htm"; }; } setTimeout(jumpUrl,1000); function exchange(){ if($('.common-alert-box .alert-btn .ok-btn').html()=="确认"){ document.getElementsByClassName("ok-btn")[0].click(); }; if($('.common-alert-box .alert-btn .ok-btn').html()=="查看好券"){ document.getElementsByClassName("cancel-btn")[0].click(); }; if(n>=095959&&n<=100002&&$('.ok-btn').length<1){ clearInterval(t1); sendVoucher('3418',1,'超市神券','50','198','100','https://cuxiao.suning.com/cs1212.html'); }else if(n>=135959&&n<=140002&&$('.ok-btn').length<1){ clearInterval(t1); sendVoucher('3419',1,'超市神券','50','198','100','https://cuxiao.suning.com/cs1212.html'); }else if(n>=155959&&n<=160002&&$('.ok-btn').length<1){ clearInterval(t1); sendVoucher('3420',1,'超市神券','50','198','100','https://cuxiao.suning.com/cs1212.html'); }else if(n>=175959&&n<=180002&&$('.ok-btn').length<1){ clearInterval(t1); sendVoucher('3421',1,'超市神券','50','198','100','https://cuxiao.suning.com/cs1212.html'); }else if(n>=195959&&n<=200002&&$('.ok-btn').length<1){ clearInterval(t1); sendVoucher('3422',1,'超市神券','50','198','100','https://cuxiao.suning.com/cs1212.html'); } } var t2 = setInterval(exchange,500); } )(); 复制代码 每次运行都要复制代码和不想装油猴?那就将代码保存为书签然后点击就可以使用~ 点评 wl8295 chrome不出北京时间? 发表于 2017-12-6 19:27 wangzhuan12635 这个油猴链接下载地址怎么打不开呢,可以私个插件吗 发表于 2017-12-4 10:31 lwj20031217 找到对应时间的券址,F12后,console里面输入哪个代码啊,很长那串吗 发表于 2017-12-4 10:28 lwj20031217 到底怎么用啊,看不懂 发表于 2017-12-4 10:24 krapnik 谢谢楼下提醒,已调整提示的文字,并不影响兑换功能,更新下最新版本即可 发表于 2017-12-4 10:16

本文地址:http://www.wyyzq.com/31110.html
关注我们:请关注一下我们的微信公众号:扫描二维码免费赚Q币的公众号,公众号:heimaoseoer
版权声明:本文为原创文章,版权归 手机做任务赚零花项目 所有,欢迎分享本文,转载请保留出处!

评论已关闭!