Firefox 浏览器附加组件
  • 扩展
  • 主题
    • 适用于 Firefox
    • 字典和语言包
    • 其他浏览器网站
    • 适用于 Android 的附加组件
登录
Time Travel 预览

Time Travel 作者: Christian Pulvermacher

Fake the current date and time in JavaScript Date or Intl.DateTimeFormat objects. Time Travel helps you debug time-dependent frontend applications without having to change the system time.

可在 Android™ 版 Firefox 上使用可在 Android™ 版 Firefox 上使用
0 (0 reviews)0 (0 reviews)
268 个用户268 个用户
您需要 Firefox 来使用此扩展
下载 Firefox 并安装扩展
下载文件

扩展元数据

屏幕截图
Choose a date from the calendar and edit the time if necessary, or enter a date and time directly.Confirm with Enter or by clicking the "Change Date" button.
Any JavaScript Date or Intl.DateTimeFormat in the current tab now returns the fake date/time you set.Enable "Stop Clock" to stop the clock.
关于此扩展
Usage:
- Open the tab you want to change the time in.
- Click the Extensions icon in the toolbar, then click Time Travel.
- Choose a date from the calendar and edit the time if necessary, or enter a date and time directly (see examples below).
- Confirm with Enter or by clicking the "Change Date" button.
- Any JavaScript Date or Intl.DateTimeFormat in the current tab now returns the fake date/time you set. Other tabs and origins are not affected.

To restore the system time, click the extension icon and switch off the "Enable Fake Date" toggle.

When the fake date is enabled, the clock runs forward from the configured time.
You can stop the clock by switching on the "Stop Clock" toggle. The fake date will be reset to the last value you set.

Example Dates and Formats:
- 2025-04-27 12:40 - Local time
- 2025-04-27 - Midnight UTC
- 2025-03-30 00:59:55 - Assuming your system timezone is Europe/London (GMT), 5 seconds before a one-hour jump to 2 a.m. (summer time)
- 2025-04-27T12:40Z - Set local equivalent for given UTC time
- 2025-04-27T12:40+1130 - Set local equivalent for time with +11:30 timezone offset. Note that actual time zone is not changed
- 2025-03-25T12:40:00.120 - Local time with milliseconds
- 1731493140025 - UNIX timestamp

Features:
- Fakes date and time for all methods of Date and Intl.DateTimeFormat objects.
- Time can be stopped and resumed.
- Option to automatically reload page after changing date.
- Only affects current tab after clicking the extension icon.

Limitations:
- Only JavaScript is affected by the extension.
- Some functionality or animations may behave strangely if the clock is stopped.
- The extension does not work in iframes with the sandbox attribute.

Contributions:
Contributions are welcome! If you have ideas, bug reports, or want to help improve Time Travel, please open an issue or submit a pull request on GitHub.
评分 0(1 位用户)
登录以评价此扩展
目前尚无评分

已保存星级评分

5
0
4
0
3
0
2
0
1
0
尚无评价
权限与数据详细了解

必要权限:

  • 访问您在所有网站的数据
更多信息
附加组件链接
  • 用户支持网站
版本
2.3.2
大小
84.96 KB
上次更新
14 天前 (2025年7月26日)
相关分类
  • 网页开发
许可证
MIT 许可证
版本历史
  • 查看所有版本
添加到收藏集
举报此附加组件
Christian Pulvermacher 制作的更多扩展
  • 目前尚无评分

  • 目前尚无评分

  • 目前尚无评分

  • 目前尚无评分

  • 目前尚无评分

  • 目前尚无评分

转至 Mozilla 主页

附加组件

  • 关于
  • Firefox 附加组件博客
  • 扩展工坊
  • 开发者中心
  • 开发者政策
  • 社区博客
  • 论坛
  • 报告缺陷
  • 评价指南

浏览器

  • Desktop
  • Mobile
  • Enterprise

产品

  • Browsers
  • VPN
  • Relay
  • Monitor
  • Pocket
  • Bluesky (@firefox.com)
  • Instagram (Firefox)
  • YouTube (firefoxchannel)
  • 隐私
  • Cookie
  • 法律

本站内容以知识共享署名-相同方式共享 v3.0 或任何更新版本授权(除非另有注明)。Android 系 Google LLC 的商标。