适合有大量积分不想一次次点抽奖的用户,新建脚本加入,进入抽奖页即可执行 https://juejin.cn/user/center/lottery?from=lucky_lottery_menu_bar
// ==UserScript==
// @name 掘金签到
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://juejin.cn/user/center/lottery?from=lucky_lottery_menu_bar
// @icon https://www.google.com/s2/favicons?domain=juejin.cn
// @grant none
// ==/UserScript==
(function() {
'use strict';
var t = window.setInterval(function() {var ajax = new XMLHttpRequest();
ajax.open('post','https://api.juejin.cn/growth_api/v1/lottery/draw',true);
ajax.withCredentials = true;
ajax.setRequestHeader('content-type','application/json; charset=utf-8');
ajax.send(JSON.stringify({}));
ajax.onreadystatechange = function (){if(ajax.readyState==4&&ajax.status==200){
var c = ajax.responseText;
console.log(c)
}
}
},2000);
})();