Greasy Fork

Greasy Fork is available in English.

Web刷新访问

自动刷网页并访问

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name         Web刷新访问
// @namespace    http://tampermonkey.net/
// @version      0.1.6
// @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(0.8,1.1)
    function suiji(start,end) {
        return Math.round((Math.random()*(end-start)+start)*1000)
    }

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

        console.log('开始访问网页==》');
        console.log(time);
        
         if(document.getElementsByClassName('el-button--danger')){
        setTimeout("document.getElementsByClassName('el-button--danger')[0].click()",time * 0.125);
        } else{
        setTimeout("document.getElementsByClassName('el-button--text')[0].click()",time * 0.125);
        }
        
        setTimeout("document.getElementsByClassName('van-tab__text')[3].click()",time * 0.525);

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

        setTimeout("document.getElementsByClassName('custom-title')[11].click()",time * 2);
        
        //setTimeout('document.querySelectorAll(".van-tab__text")[5].click()',time * 3);

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

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

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

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

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

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

    },time * 8);

    
})();