Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@ziadoz
Last active December 8, 2022 22:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ziadoz/ed7aa0b0709ba1f7f081f6b1291c6bca to your computer and use it in GitHub Desktop.
Save ziadoz/ed7aa0b0709ba1f7f081f6b1291c6bca to your computer and use it in GitHub Desktop.
Refresh Browser Tab At Specific Time
// Resources
// @see: https://www.technipages.com/how-to-auto-refresh-chrome-tabs-without-an-extension
// @see: https://stackoverflow.com/questions/1217929/how-to-automatically-reload-a-web-page-at-a-certain-time
// Paste this into the Web Inspector on the browser tab you want to refresh and hit Enter.
// Change this to the exact time you want to refresh the page at:
let then = new Date('2022-12-09 01:01:00');
window.setTimeout(() => window.location.reload(true), then.getTime() - new Date().getTime());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment