Skip to content

Instantly share code, notes, and snippets.

@Vaisakhkm2625
Last active February 10, 2023 13:48
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 Vaisakhkm2625/ca8b9acd5517eb768b14f05c7a98bcfe to your computer and use it in GitHub Desktop.
Save Vaisakhkm2625/ca8b9acd5517eb768b14f05c7a98bcfe to your computer and use it in GitHub Desktop.
refresh a tab again and again
var w = window.open(window.location.href);
setInterval(function(){w.window.location.reload()},10000)

this will duplicate and reload a tab every 10 second (10000 milisecond), change it as required

put above code in a book marklet converter like https://mrcoles.com/bookmarklet/

here is the bookmarklet for it, add this to bookmark panel

javascript:(function()%7Bvar%20w%20%3D%20window.open(window.location.href)%3BsetInterval(function()%7Bw.window.location.reload()%7D%2C10000)%7D)()
@Vaisakhkm2625
Copy link
Author

javascript:(function()%7Bvar%20w%20%3D%20window.open(window.location.href)%3BsetInterval(function()%7Bw.window.location.reload()%7D%2C120000)%7D)()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment