When I build websites I use 2 monitors. I have my development IDE on the main monitor and the web page open on the secondary screen.
I get annoyed that everytime I need to refresh the web page I have to go to my mouse, move over to the other screen and click refresh.
I would like to have a shortcut key mapped to reloading the web page whenever I need. In a similar way to how Winamp maps keys to common functions like play/pause etc.
I have discovered that an existing FireFox process can be controled from the command line, however the best it can do is create a new window with a specific URL.
firefox -remote "openURL(www.mozilla.org, new-tab)"
The documentation is here: https://developer.mozilla.org/en/Command_Line_Options
There is also a firefox extension that will refresh the web page periodically. However this results in a constant flickering of the page and will also be wasteful with resources.
https://addons.mozilla.org/en-US/firefox/addon/115/
Does anyone know how I could do this? Thanks!
In any computer browser, press and hold Ctrl (Windows) or ⇧ Shift (Mac). While holding, press refresh ⟳. Using Chrome on mobile, go to ⋮ (Android) or … (iOS) > Settings > Privacy > Clear Browsing Data > Clear Browsing Data (iOS) or Clear Data (Android).
Approach 1: One can auto refresh the webpage using the meta tag within the head element of your HTML using the http-equiv property. It is an inbuilt property with HTML 5. One can further add the time period of the refresh using the content attribute within the Meta tag.
In Windows XP, this should work:
Create a VBS file called refresh.vbs
:
Set WshShell = WScript.CreateObject("WScript.Shell") WshShell.AppActivate("Firefox") WshShell.SendKeys "{F5}" WshShell.AppActivate("TextPad")
Create a shortcut to this file on your desktop.
Right-click the shortcut icon and go to Properties
.
In the General
tab, click on the Change button next to "Opens with". Browse to C:\WINDOWS\system32\cscript.exe
Select Microsoft Console Based Script Host.
In the Shortcut
tab, enter a Shortcut key e.g CTRL + ALT + R
. In the Run dropdown, select Minimised
.
Now, when you hit CTRL + ALT + R
, it will refresh the current tab in Firefox.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With