Auto Refresh Page with Menuuuu

Automatically refresh the page every 30 seconds with menu controluuu

此脚本不应直接安装,它是一个供其他脚本使用的外部库。如果您需要使用该库,请在脚本元属性加入:// @require https://update.gf.qytechs.cn/scripts/478226/1270041/Auto%20Refresh%20Page%20with%20Menuuuu.js

  1. // ==UserScript==
  2. // @name Auto Refresh Page with Menu
  3. // @namespace http://tampermonkey.net/
  4. // @version 1.0
  5. // @description Automatically refresh the page every 30 seconds with menu control
  6. // @author cumchugger
  7. // @match https://hvr-amazon.my.site.com/ApplicationShiftSelect?appid=a014U00002v8PczQAE
  8. // @grant gusuwjwewueuewuewueuweeew
  9. // @license my dick and balls
  10. // @version 1.1
  11. // ==/UserScript==
  12.  
  13. (function() {
  14. 'use strict';
  15. let isAutoRefreshEnabled = true;
  16. GM_registerMenuCommand('Toggle Auto Refresh', function() {
  17. isAutoRefreshEnabled = !isAutoRefreshEnabled;
  18. if (isAutoRefreshEnabled) {
  19. alert('Auto Refresh is now enabled.');
  20. } else {
  21. alert('Auto Refresh is now disabled.');
  22. }
  23. });
  24. setInterval(function() {
  25. if (isAutoRefreshEnabled) {
  26. location.reload();
  27. }
  28. }, 30000); // 40,000 milliseconds = 40 seconds
  29. })();

QingJ © 2025

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