Greasy Fork

Greasy Fork is available in English.

CheckinSuite

Checkin all in one

目前为 2023-04-26 提交的版本。查看 最新版本

// ==UserScript==
// @name         CheckinSuite
// @namespace    https://github.com/frosn0w/iOSscripts
// @version      1.2
// @description  Checkin all in one
// @author       frosn0w
// @match        https://xue.alibaba-inc.com/trs/xue/home*
// @match        https://hifini.com
// @icon         https://www.google.com/s2/favicons?sz=64&domain=alibaba-inc.com
// @grant        none
// @license      MIT
// ==/UserScript==

(function() {
    'use strict';
    // 定义一个定时器,每隔一秒检测元素是否存在
    var timer = setInterval(function(){
        // find all spans
        var spans = document.querySelectorAll("span");
        for (var i = 0; i < spans.length; i++) {
            //alilearn
            if (spans[i].getAttribute("class") === "next-btn-helper" && spans[i].innerText === "签到") {
                spans[i].click();
            }
            //hifini
            else if (spans[i].getAttribute("class") === "mibbs_signpanel JD_sign " && spans[i].innerText === "签到") {
                spans[i].click();
            }
            else continue;
        }
    }, 1500);
})();