Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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())};
}
@jahanson
Copy link

jahanson commented Feb 19, 2015

Works great.

@dru1313
Copy link

dru1313 commented May 30, 2017

Is there something that can be added to this code so it auto scrolls after each refresh? The refresh works great but I need to scroll the page down automatically as well to see all of the new updates.

@Landsil
Copy link

Landsil commented Apr 13, 2018

Still works, still useful :)

@pmachart
Copy link

pmachart commented Mar 5, 2020

wow, this is 10 years old.
using this to refresh my unit test coverage report while TDDing :)

searched "auto refresh bookmarklet". not disapointed !

@thapakazi
Copy link

thapakazi commented Dec 12, 2020

๐Ÿ˜ฎ | ๐Ÿ™‡
thanks

@jerbear2008
Copy link

jerbear2008 commented Mar 3, 2021

โ€Œโ€โ€Œโ€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

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