Fake Date with Controls

Set a fake date in your browser globally using Tampermonkey with UI controls

作者
vijankush
日安装量
0
总安装量
2
评分
0 0 0
版本
1.3
创建于
2025-04-01
更新于
2025-04-01
大小
8.1 KB
许可证
MIT
适用于
所有网站

Fake Date with Controls

A Tampermonkey/Greasemonkey script that lets you simulate a different date and time in your browser. This can be useful for testing date-sensitive websites, previewing future UI states, or bypassing time-based restrictions.

Features

  • Custom Date Setting: Set your browser to any date and time, past or future
  • Real-Time Toggle: Easily switch between fake time and real time
  • Persistent Settings: Your chosen date persists across page reloads and browser sessions
  • User-Friendly UI: Simple controls with clear status indicators
  • Global Effect: Works across all websites

Installation

  1. Install Tampermonkey or another userscript manager
  2. Click the "Install this script" button on this page
  3. Authorize the installation when prompted
  4. The script should now be active on all websites

Usage

After installation, you'll see a time control panel at the bottom right of every web page:

  • View Current Time: The panel shows the currently active time (fake or real)
  • Set a New Date: Use the date/time picker and click "Set Date"
  • Apply Changes: Click "Refresh Page" to apply the new date
  • Reset to Real Time: Click "Reset to Real Time" and then refresh
  • Hide Panel: Click "Hide Panel" to minimize (click the clock icon to restore)

How It Works

This script overrides JavaScript's native Date object and performance.now() function to return values adjusted by your specified time difference. Since most websites rely on these methods for time-related functions, the fake date works across most sites.

Privacy & Security

  • This script only affects the browser's date and time reporting
  • It doesn't send any data to external servers
  • Your chosen date settings are stored in your browser's localStorage
  • It doesn't modify actual HTTP requests or server-side timestamps

License

This script is provided under the MIT License.

QingJ © 2025

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