Fake Date

Set a fake date in your browser globally using Tampermonkey

As of 2025-03-12. See the latest version.

Author
vijankush
Ratings
0 0 0
Version
1.2
Created
2025-03-12
Updated
2025-03-12
Size
2.12 KB
License
MIT
Applies to
All sites

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.