关键代码在这
[JavaScript] 纯文本查看 复制代码 $(".signin").on('click', function() {
if(signloading) return;
$.xpost('user-signin.htm', {}, function(code, message) {
if(code == 0) {
$.msg('签到成功,已获取'+message+'雪币!', {icon:6});
var sign_html = '<svg t="1598844508667" class="icon" style="width: 1em; height: 1em; vertical-align: middle; fill: currentcolor; overflow: hidden; font-size: 14px;" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1598" width="32" height="32"><path d="M873.998 149.939C777.318 53.25 648.748 0 511.999 0s-265.317 53.25-362.002 149.94S0 375.206 0 511.966c0 136.692 53.245 265.332 149.997 362.027 96.75 96.69 225.252 150.005 362.002 150.005s265.319-53.25 362.069-150.005c96.62-96.695 149.93-225.334 149.93-362.027C1023.997 375.206 970.688 246.629 873.998 149.939L873.998 149.939zM830.563 830.618 830.563 830.618 629.918 629.893c-21.495 21.43-47.4 35.845-74.74 43.115l73.51 274.359c-37.6 10-76.755 15.2-116.69 15.2s-79.09-5.2-116.685-15.2l73.505-274.359c-27.337-7.27-53.245-21.685-74.675-43.115L193.434 830.618c-58.047-57.93-96.877-127.995-116.617-202.089l274.082-73.38c-7.533-28.31-7.533-58.117 0-86.3L76.817 395.404c19.74-74.095 58.57-144.097 116.555-202.087l0 0 200.707 200.722c21.495-21.43 47.402-35.845 74.74-43.117L395.314 76.56c37.595-10 76.75-15.195 116.685-15.195s79.09 5.195 116.69 15.195l-73.51 274.362c27.34 7.337 53.245 21.687 74.74 43.182l200.644-200.722 0 0c56.94 56.885 96.62 126.24 116.88 201.954l-274.409 73.512c7.535 28.247 7.535 58.05 0 86.3l274.409 73.51C927.248 704.373 887.503 773.728 830.563 830.618L830.563 830.618zM539.079 373.454l-27.08-132.082-25.065 131.695c-27.337 4.932-53.57 17.92-74.672 39.09-55.127 55.132-55.127 144.482 0 199.622 55.127 55.06 144.477 55.06 199.602 0 55.135-55.14 55.135-144.49 0-199.622C591.148 391.571 565.699 378.649 539.079 373.454L539.079 373.454z" p-id="1599" fill="#0099ee" data-spm-anchor-id="a313x.7781069.0.i4"></path></svg> <span style="vertical-align: middle;">幸运转盘</span></span>';
$(".signin").html(sign_html);
$(".signin").addClass("signin_over").removeClass('sign');
return;
} else {
// $.msg(message,{icon:2});
window.location.href = 'https://www.kanxue.com/luckdraw.htm';
return;
}
})
});
在浏览器控制台输入 [JavaScript] 纯文本查看 复制代码 $(".signin").click() 即可在未签到的情况下进行签到 但我没做过浏览器脚本,只能给后来人指路。 |