Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cpulvermacher/time-travel
Time Travel - A Chrome extension to spoof the current date and time seen by websites.
https://github.com/cpulvermacher/time-travel
browser-extension chrome-extension date debugging testing time
Last synced: 3 months ago
JSON representation
Time Travel - A Chrome extension to spoof the current date and time seen by websites.
- Host: GitHub
- URL: https://github.com/cpulvermacher/time-travel
- Owner: cpulvermacher
- License: mit
- Created: 2023-03-15T00:35:49.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2024-10-23T15:54:44.000Z (4 months ago)
- Last Synced: 2024-11-09T10:35:21.192Z (3 months ago)
- Topics: browser-extension, chrome-extension, date, debugging, testing, time
- Language: TypeScript
- Homepage: https://chromewebstore.google.com/detail/time-travel/jfdbpgcmmenmelcghpbbkldkcfiejcjg
- Size: 740 KB
- Stars: 41
- Watchers: 1
- Forks: 5
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ![](/images/icon-32.png) Time Travel
[![Latest Release](https://flat.badgen.net/github/release/cpulvermacher/time-travel)](https://github.com/cpulvermacher/time-travel/releases)
[![Chrome Web Store](https://flat.badgen.net/chrome-web-store/v/jfdbpgcmmenmelcghpbbkldkcfiejcjg)](https://chrome.google.com/webstore/detail/time-travel/jfdbpgcmmenmelcghpbbkldkcfiejcjg)
[![Installs](https://flat.badgen.net/chrome-web-store/users/jfdbpgcmmenmelcghpbbkldkcfiejcjg)](https://chrome.google.com/webstore/detail/time-travel/jfdbpgcmmenmelcghpbbkldkcfiejcjg)
[![Status](https://flat.badgen.net/github/checks/cpulvermacher/time-travel)](https://github.com/cpulvermacher/time-travel/actions/workflows/node.js.yml)
[![License](https://flat.badgen.net/github/license/cpulvermacher/time-travel)](./LICENSE)A Chrome extension to change the current date and time seen by websites.
You can use it to debug time-dependent frontend/JavaScript applications
without having to change the system time.## Usage
- Switch to the tab where you want to to change the time
- Click the extension icon in the toolbar.
- Enter the date and time you want to set and confirm, e.g.:
- "2023-04-27 12:40" (local time)
- "2023-04-27" (midnight local time)
- "2023-04-27T12:40Z" (set local equivalent for given UTC time)
- "2023-04-27T12:40+1130" (set local equivalent for time with +11:30 timezone offset)
- "2023-03-25T12:40:00.120" (local time with milliseconds)
- "1731493140025" (UNIX timestamp)
- When first activating the extension on a tab, click Reload when prompted.
- 🎉 Any JavaScript `Date` object in the current tab now returns the fake date/time you set.To restore the system time, click the extension icon and press Reset.
When the fake time is turned on, the clock is paused by default.
You can press the play (▶) button to make the fake clock tick forward at a normal rate.
Press stop (⏹) to pause the clock.## Limitations
- Only Chrome / Chromium support (for now)
- Only JavaScript is affected by the extension.
- The extension does not work in iframes with the `sandbox` attribute## Installation
Get it from the Chrome Web Store: https://chrome.google.com/webstore/detail/time-travel/jfdbpgcmmenmelcghpbbkldkcfiejcjg## Build
To build and use a local version:
- Download this repository
- Run `npm install`
- Run `npm run dev` (or `npm run build` for a production version)
- Open chrome://extensions
- Enable 'Developer Mode'
- Click 'Load unpacked' and select the `dist/` directory