致美化一键签到

在致美化顶栏增加签到按钮,点击后自动跳转签到。

目前為 2023-10-04 提交的版本,檢視 最新版本

// ==UserScript==
// @name         致美化一键签到
// @namespace    https://blog.adproqwq.xyz
// @version      0.1
// @description  在致美化顶栏增加签到按钮,点击后自动跳转签到。
// @author       Adpro
// @match        https://zhutix.com/*
// @icon         data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
// @grant        none
// @license      GPL-3
// ==/UserScript==

(function() {
    'use strict';
    var button = document.createElement('button');
    button.textContent = '签到';
    button.style.width = '90px';
    button.style.height = '28px';
    button.style.align = 'center';
    button.style.color = 'black';
    button.style.background = '#ffffff';
    button.style.border = '1px solid';
    button.style.borderRadius = '4px';
    button.addEventListener('click',clickButton);

    function clickButton(){
        setTimeout(function(){
            var newWindow = window.open('https://zhutix.com/mission/today');
            setTimeout(function(){
                newWindow.document.getElementsByClassName('custom-page-row gold-row mg-t')[0].getElementsByTagName('div')[1].getElementsByTagName('button')[0].click();
            },5000);
        },100);
    };

    var display = document.getElementsByClassName('he_glfds')[0];
    display.appendChild(button);

    // Your code here...
})();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址