Greasy Fork 支持简体中文。

Fake Date

Set a fake date in your browser globally using Tampermonkey

作者
vijankush
今日安裝
0
安裝總數
0
評價
0 0 0
版本
1.2
建立日期
2025-03-12
更新日期
2025-03-12
尺寸
2.1 KB
授權條款
MIT
腳本執行於
所有網站

Key Improvements:

Dynamic Offset Approach: Instead of setting a fixed fake date, the script now calculates a time difference between the fake date and the real current time. This makes the fake date advance naturally as time passes.


Better No-Args Constructor: The no-args constructor now returns the current time plus the offset, which better simulates real date behavior.


Symbol Support: Added support for Symbol.species which helps with inheritance in modern JavaScript.


Performance.timeOrigin: Added handling for the timeOrigin property of the performance API.


Proper Date Output in Log: Using toISOString() in the console log for clearer date representation.