Web刷新访问

自动刷网页并访问

目前為 2022-12-13 提交的版本,檢視 最新版本

// ==UserScript==
// @name         Web刷新访问
// @namespace    http://tampermonkey.net/
// @version      0.1.3
// @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() {

        console.log('开始访问网页==》');
        console.log(time);
        var wt = time * 0.8;

        setTimeout("document.getElementsByClassName('el-button--danger')[0].click()",wt * 0.125);
        
        //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 * 1);

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

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

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

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

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

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

    },time * 8);

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

QingJ © 2025

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