autologin

Automatically clicks a button on the page after it loads.

질문, 리뷰하거나, 이 스크립트를 신고하세요.
// ==UserScript==
// @name         autologin
// @namespace    http://tampermonkey.net/
// @version      0.4
// @description  Automatically clicks a button on the page after it loads.
// @author       Your Name
// @match        https://login.dingtalk.com/*
// @grant        none
// @license MIT
// ==/UserScript==

(function() {
    'use strict';

    // 等待页面完全加载
    window.addEventListener('load', function() {
        // 延迟1000毫秒后执行点击操作
        setTimeout(function() {
            // 查找具有特定类名的按钮
            var button = document.querySelector('.module-confirm-button');

            // 如果找到了按钮,就执行点击
            if (button) {
                button.click();
            }
       }, 1000);  // 设置1000毫秒的延时
    }, false);
})();