Greasy Fork

YouGet_自动刷新

有搞头的脚本。

// ==UserScript==
// @name         YouGet_自动刷新
// @namespace    http://www.youget.vip/
// @version      1.0
// @description  有搞头的脚本。
// @author       You
// @match        http://*/*
// @match        https://*/*
// @exclude      https://排除/*
// @icon         http://www.youget.vip/logo/ygt.ico
// @grant        none
// @license MIT
// ==/UserScript==

(function() {
    'use strict';


    // 定义刷新时间间隔(单位:毫秒)
    const refreshInterval = 30 * 1000; // 5分钟

    // 定义计时器,每隔一定时间刷新页面
    setInterval(function() {
        location.reload();
    }, refreshInterval);





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