Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Using the TabMixPlus plugin for Firefox or Chrome, I can right click a page and choose "reload every..." and I could choose an interval.

I'd prefer not to install a plugin unless I really have to, and I am aware that you can type special things into Chrome's address bar.

This makes me think that something like this typed straight into the address might work:

javascript:setInterval(window.location.reload(), 2000); //2 secs`

I haven't managed it yet, but still don't want to rule it out as a possibility.

Is this possible?

share|improve this question
Why are you against a plugin? If you are that worried just write your own plugin that does exactly what you want. – Ramhound Jun 13 '12 at 11:16
I'm not against plugins, sorry if it reads like that. I'd just like to learn a bit more about Chrome's address bar's capabilities :) – jon Jun 13 '12 at 11:31
Why haven't you tried typing this into the address bar? – Toby Allen Jun 13 '12 at 13:21
I have, see i haven't managed it yet – jon Jun 13 '12 at 13:22
The problem is that once you call location.reload() and the page reloads, as far as Chrome is concerned it's basically like loading a new page and the context is all new (the things you typed previously are lost). So you need to persist your code somehow and have the page be the same, which is why the iframe solution of the answer. – ShreevatsaR Mar 5 at 18:05

You could do it through the Chrome Developer Tools using key combination ctrl+shift+j. Load the page you want, say for example: then hit ctrl+shift+j to open the developer tools. Right click on the body tag and select edit as html replace the inner contents (leaving the tag and closing tags intact) with the following:

<iframe id="testFrame" src="" style="position: absolute; top:0; left:0; right:0; bottom:0; width:100%; height:100%;" onload="setInterval(document.getElementById('testFrame').contentWindow.location.reload(), 10000);"></iframe>

to stop editing as html you can either hit esc or click on one of the tags outside of the one you're editing. The page should start reloading every 10 seconds, you can close the developers tools if you'd like and it will continue to refresh, no plugin needed :)

share|improve this answer
Thanks Justin, this works so I have upvoted, but it's not the answer I was looking for so will leave the question open in hope :) Also, F12 non? – jon Jun 13 '12 at 18:54

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .