bilibili自动签到
// ==UserScript==
// @name bilibili自动签到
// @namespace wyz
// @version 1.0.0
// @author wyz
// @crontab * * * * *
// @grant GM_xmlhttpRequest
// @grant GM_notification
// ==/UserScript==
console.log(123)
setTimeout(function(){
GM_notification({
title:'123',
text:'456',
highlight :false,
silent :false,
timeout:2000
});
},200);
return
GM_xmlhttpRequest({
method: 'GET',
url: 'https://api.live.bilibili.com/sign/doSign',
timeout: 2000,
onload: function (xhr) {
if(xhr.status==200){
if (xhr.response.code!=0){
GM_notification('bilibili自动签到','哔哩哔哩自动签到成功');
}
}
console.log(xhr);
},
ontimeout: function () {
}
});