try to fuck over the fucking teachers who care you a lot
// ==UserScript==
// @name 腾讯课堂自动签到、答题
// @namespace http://tampermonkey.net/
// @version 0.2
// @description try to fuck over the fucking teachers who care you a lot
// @author BowenYou
// @match https://ke.qq.com/*
// @grant none
// ==/UserScript==
(function() {
'use strict';
const timer = setInterval(function () {
var date = new Date();
let sj = date.getHours() + "-" + date.getMinutes();
let signIn = document.getElementsByClassName("s-btn--m")[0];
if (signIn) {
let signInValue = signIn.innerHTML;
if (signInValue == "签到") {
console.log(sj + "签到");
signIn.click();
// clearInterval(timer);
}else {
console.log(sj + "回答问题")
signIn.click();
}
return;
}
console.log(sj + "不存在");
}, 1000)
})();