Skip to content

Instantly share code, notes, and snippets.

@eculver
Created January 2, 2010 01:02
Show Gist options
  • Star 32 You must be signed in to star a gist
  • Fork 9 You must be signed in to fork a gist
  • Save eculver/267327 to your computer and use it in GitHub Desktop.
Save eculver/267327 to your computer and use it in GitHub Desktop.
Auto-refresh bookmarklet
// origin: http://www.google.com/support/forum/p/Chrome/thread?tid=1a37ccbdde5902fd&hl=en
javascript:
timeout=prompt("Set timeout [s]");
current=location.href;
if(timeout>0)
setTimeout('reload()',1000*timeout);
else
location.replace(current);
function reload(){
setTimeout('reload()',1000*timeout);
fr4me='<frameset cols=\'*\'>\n<frame src=\''+current+'\'/>';
fr4me+='</frameset>';
with(document){write(fr4me);void(close())};
}
@jerbear2008
Copy link

‌‍‌‍C‍‌‌‍‌‍‍‌a‌‍‌‍‌n‍‍‌‌‌‌‍‌‍‍‌'‍‌‌‌‌‌‍t‌‍‍‌‌‌‌‍‌‌‌ ‌‌‌‍‌‌‍‌‌b‍‌‌‍e‌‌‌‌‌‌l‍‍‌‍‌‌‌‌i‍‍‌‍‌‌‍‌‍‍‌‌‍‌e‌‌‌‍v‌‌‌‌‌‌e‍‍‌‌‌‌‍‌‌‍ ‌‌‌‌‌‌‍‍‌‍t‍‌‍‌‍‍‌h‌‍‌‍‌‍‍‍i‌‌‍‍‌s‍‍‍‌‌‍‍‌‍‍ ‌‌‌‌‍‌‍‍‌s‌‍‍t‍‌‍‍‌‌‍‌‍‌i‌‍‌‌‌‌‌‌‍l‍‌‍‌l‌‌‌‍ ‍‌‌‍‌‍‌‍‍‍w‌‌‍‌‌‍‍o‌‌‍‌‍‌‌‍‌‍‍r‍‌‌‌‍k‌‌‌‌‌‌s‌‍‍‍‍‌‍‌‌‍‌‍‌‌‍.

@pgross41
Copy link

pgross41 commented Mar 9, 2021

This is perfect

@m-asani
Copy link

m-asani commented Aug 2, 2022

Amazing !!!

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