Last active 1747999916

f97's Avatar f97 revised this gist 1747999916. Go to revision

1 file changed, 1 insertion, 1 deletion

now.js

@@ -6,7 +6,7 @@ const now = Math.floor(Date.now() / 1000);
6 6
7 7 if (body?.timestamp) {
8 8 body.now = now;
9 - body.timestamp = now + 3000;
9 + body.timestamp = now;
10 10 }
11 11
12 12 $done({ body: JSON.stringify(body) });

f97's Avatar f97 revised this gist 1747999840. Go to revision

1 file changed, 1 insertion, 1 deletion

now.js

@@ -6,7 +6,7 @@ const now = Math.floor(Date.now() / 1000);
6 6
7 7 if (body?.timestamp) {
8 8 body.now = now;
9 - body.timestamp = now;
9 + body.timestamp = now + 3000;
10 10 }
11 11
12 12 $done({ body: JSON.stringify(body) });

f97's Avatar f97 revised this gist 1747999707. Go to revision

1 file changed, 1 insertion

now.js

@@ -6,6 +6,7 @@ const now = Math.floor(Date.now() / 1000);
6 6
7 7 if (body?.timestamp) {
8 8 body.now = now;
9 + body.timestamp = now;
9 10 }
10 11
11 12 $done({ body: JSON.stringify(body) });

f97's Avatar f97 revised this gist 1747999589. Go to revision

1 file changed, 1 insertion, 1 deletion

now.js

@@ -2,7 +2,7 @@ try {
2 2 let body = JSON.parse($response.body);
3 3
4 4 // Lấy timestamp hiện tại theo giờ hệ thống (UTC, tính theo giây)
5 - const now = Date.now();
5 + const now = Math.floor(Date.now() / 1000);
6 6
7 7 if (body?.timestamp) {
8 8 body.now = now;

f97's Avatar f97 revised this gist 1747999481. Go to revision

1 file changed, 1 insertion, 1 deletion

now.js

@@ -5,7 +5,7 @@ try {
5 5 const now = Date.now();
6 6
7 7 if (body?.timestamp) {
8 - body.timestamp = 1000;
8 + body.now = now;
9 9 }
10 10
11 11 $done({ body: JSON.stringify(body) });

f97's Avatar f97 revised this gist 1747999418. Go to revision

1 file changed, 1 insertion, 1 deletion

now-2. js renamed to now.js

@@ -5,7 +5,7 @@ try {
5 5 const now = Date.now();
6 6
7 7 if (body?.timestamp) {
8 - body.timestamp = now;
8 + body.timestamp = 1000;
9 9 }
10 10
11 11 $done({ body: JSON.stringify(body) });

f97's Avatar f97 revised this gist 1747998510. Go to revision

1 file changed, 1 insertion, 1 deletion

timezone.module

@@ -4,7 +4,7 @@
4 4 #!desc=Adjust TimezoneDB timestamp by subtracting ~50 years
5 5
6 6 [Script]
7 - TimezoneDB=type=http-response,pattern=timezonedb,requires-body=1,script-path=https://demo.opengist.io/f97/cfa7470912c74cae8834bbd590f86666/raw/HEAD/now.js
7 + TimezoneDB=type=http-response,pattern=timezonedb,requires-body=1,script-path=https://demo.opengist.io/f97/cfa7470912c74cae8834bbd590f86666/raw/HEAD/fix.js
8 8
9 9 [MITM]
10 10 hostname=%APPEND% api.timezonedb.com

f97's Avatar f97 revised this gist 1747998440. Go to revision

1 file changed, 2 insertions, 2 deletions

now-1.js renamed to now-2. js

@@ -2,10 +2,10 @@ try {
2 2 let body = JSON.parse($response.body);
3 3
4 4 // Lấy timestamp hiện tại theo giờ hệ thống (UTC, tính theo giây)
5 - const now = Math.floor(Date.now() / 1000);
5 + const now = Date.now();
6 6
7 7 if (body?.timestamp) {
8 - body.timestamp = now + 60 * 60 *2;
8 + body.timestamp = now;
9 9 }
10 10
11 11 $done({ body: JSON.stringify(body) });

f97's Avatar f97 revised this gist 1747998345. Go to revision

1 file changed, 0 insertions, 0 deletions

now.js renamed to now-1.js

File renamed without changes

f97's Avatar f97 revised this gist 1747998296. Go to revision

1 file changed, 1 insertion, 1 deletion

now.js

@@ -5,7 +5,7 @@ try {
5 5 const now = Math.floor(Date.now() / 1000);
6 6
7 7 if (body?.timestamp) {
8 - body.timestamp = now + 60 *2;
8 + body.timestamp = now + 60 * 60 *2;
9 9 }
10 10
11 11 $done({ body: JSON.stringify(body) });
Newer Older