Last active 1 week ago

dakusuno revised this gist 1 week ago. Go to revision

1 file changed, 1 deletion

gistfile1.txt

@@ -20,7 +20,6 @@
20 20 const delay = targetDate.getTime() - now.getTime();
21 21
22 22 if (delay > 0) {
23 - console.log(Page will refresh in ${delay / 1000} seconds at ${targetDate});
24 23 setTimeout(() => {
25 24 location.reload();
26 25 }, delay);

dakusuno revised this gist 1 week ago. Go to revision

1 file changed, 28 insertions

gistfile1.txt(file created)

@@ -0,0 +1,28 @@
1 + // ==UserScript==
2 + // @name Auto Refresh
3 + // @namespace http://tampermonkey.net/
4 + // @version 2026-04-08
5 + // @description try to take over the world!
6 + // @author You
7 + // @match https://dyandraglobalstore-02.com/*
8 + // @icon https://www.google.com/s2/favicons?sz=64&domain=dyandraglobalstore-02.com
9 + // @grant none
10 + // ==/UserScript==
11 +
12 +
13 + (function() {
14 + 'use strict';
15 +
16 + // Set your target datetime here (YYYY, MM-1, DD, HH, MM, SS)
17 + const targetDate = new Date(2026, 3, 9, 15, 0, 0); // April 8, 2026 at 3:00:00 PM
18 +
19 + const now = new Date();
20 + const delay = targetDate.getTime() - now.getTime();
21 +
22 + if (delay > 0) {
23 + console.log(Page will refresh in ${delay / 1000} seconds at ${targetDate});
24 + setTimeout(() => {
25 + location.reload();
26 + }, delay);
27 + }
28 + })();
Newer Older