Web自动刷新

自动刷网页并点击

目前為 2022-09-07 提交的版本,檢視 最新版本

// ==UserScript==
// @name         Web自动刷新
// @namespace    http://tampermonkey.net/
// @version      0.1.1
// @description  自动刷网页并点击
// @author       zhaiwei
// @match        https://jdydt.ccdi.gov.cn/*
// @icon         https://jdydt.ccdi.gov.cn/favicon.ico
// @grant        none
// @run-at       document-end
// ==/UserScript==

(function() {
    'use strict';
    console.log('开始访问网页!');
    let time=suiji(1,1.2)
    function suiji(start,end) {
        return Math.round((Math.random()*(end-start)+start)*1000)
    }

    console.log(time);
    window.setInterval(function() {


        var wt = time * 0.8;

        setTimeout("document.getElementsByClassName('van-tab__text')[3].click()",wt * 0.125);

        setTimeout("document.getElementsByClassName('custom-title')[11].click()",wt * 1);

        setTimeout("document.getElementsByClassName('custom-title')[11].click()",wt * 2);

        setTimeout("document.getElementsByClassName('custom-title')[4].click()",wt * 3);

        setTimeout("document.getElementsByClassName('custom-title')[3].click()",wt * 4);

        setTimeout("document.getElementsByClassName('custom-title')[9].click()",wt * 5);

        setTimeout("$('.common-item-body')[parseInt(Math.random()*14)].click()",time * 5.5);

        setTimeout("window.location.href= 'https://jdydt.ccdi.gov.cn/#/'",time * 8);

        setTimeout("window.location.reload()",time * 9);

    },time * 10);

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

QingJ © 2025

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