Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

1 Answer 1

You could do it through the Chrome Developer Tools using key combination ctrl+shift+j. Load the page you want, say for example: http://www.w3schools.com/jsref/dom_obj_frame.asp 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="http://www.w3schools.com/jsref/dom_obj_frame.asp" 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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.