There is a lot that Easy Auto Refresh can do, besides just refreshing the web page. Did you know you can execute JavaScript after each page refresh or at each countdown interval? Think of all the amazing things you can do!
To run a script after a page refresh, follow the steps below.
If you want the script to run after a page refresh, checkmark the option Click element after page refresh. If you want to run the script at each countdown interval (without an actual page refresh), leave the checkbox empty.
Click the Start button to begin the countdown.
The above steps will run your script at each countdown interval. If you also checkmarked the option to Click element after page refresh, the page will first refresh, and then run your script.
The key to running a script after a refresh is to include the line document.querySelector('body'); followed by a setTimeout() which contains the code that you want to execute on the page. You can run any code that you like within the setTimeout() method to perform any number of actions, such as clicking advanced buttons or elements on the page, changing css styles, and much more.
The following script prints "Hello Easy Auto Refresh!" to the browser console after each refresh.
Demo
Changing the Page Color
The following script changes the web page background color after each countdown interval.
Demo
Animating a Map
The following script automatically clicks the "Play" button on an animated weather map, after each page refresh.
Demo
The advanced options are available in the registered version of Easy Auto Refresh. Unlock your copy today to harness the full scripting capabilities of automatic page refreshing in Chrome.