您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
If on the downforeveryoneorjustme.com then it will refresh your query every 5 minutes. Alerts user if checked 5 times.
当前为
- // ==UserScript==
- // @name Refresh Down Now For Everyone
- // @namespace lundeen-bryan
- // @version 1.0.0
- // @description If on the downforeveryoneorjustme.com then it will refresh your query every 5 minutes. Alerts user if checked 5 times.
- // @author lundeen-bryan
- // @match https://downforeveryoneorjustme.com/*
- // @icon https://downforeveryoneorjustme.com/favicon.ico
- // @license GPL-2.0-or-later
- // @grant none
- // ==/UserScript==
- (function () {
- // Set the refresh interval (in milliseconds)
- const refreshInterval = 5 * 60 * 1000; // 5 minutes
- const maxLoops = 5; // Number of loops before sending an alert
- let loopCount = 0;
- // Function to reload the page
- function refreshPage() {
- location.reload();
- loopCount++;
- // Check if the maximum number of loops has been reached
- if (loopCount === maxLoops) {
- sendAlert();
- }
- }
- // Function to send an alert
- function sendAlert() {
- // Replace with your desired alert mechanism (e.g., browser notification, console.log, etc.)
- console.log("Checked for almost 30 minutes. Consider taking a break!");
- }
- // Schedule the refresh
- setInterval(refreshPage, refreshInterval);
- })();