top of page
Writer's pictureIGEL Community

How to setup a site refresh in Firefox Browser that executes every 5 minutes

Written by Milan Potrok , IGEL COMMUNITY MEMBER OF THE YEAR


In our Community we had the request for a configuration that sutomatically refreshs a Firefox session every 5 minutes

For this task, I created a profile which helped in that case: custom-firefox-refresher-ca


Please be sure to review and understand what it's doing before you use it. I like to include logging, and sometimes variables, so that changes may be made outside of the script itself.


0.I've included animated-gif to show it in action.

It's a "custom-application" (runs as user). It can be run from the desktop shortcut, or the "hotkey" "Ctrl-Alt-Shift q". I've included a "progress-bar" that shows the next time it will refresh the browser. This overlay progress-bar can be turned off by setting the variable FFRefreshProgressbar = false. The other variables control the refresh interval, and verbose debugging messages to the syslog (journalctl).When it no-longer finds a visible firefox window, the custom-application exits.




1. UMS: Dynamic Variable settings:

There are a few variables you can override (also provided as attached VARIABLES XML file)

System -> Firmware Customization -> Environment Variables -> Additional:



2. Script with Comments:





3. Script ready to copy-and-paste into a custom-application:

(Same as above, but comments and line-breaks removed)

Also provided as attached XML file





Hope it works well, please let me know if you have some questions or comments!



Read more here:





Comments


bottom of page