How To Create a Firefox Offline Mode Batch File

August 5, 2018   /   by Marco  / Categories :  Business, Software, Technology, TIP AND TRICKS, website

For those of you who don’t know, Firefox has an OFFLINE mode where you can use this to display cached content if the website is down. I’ve managed to create a little batch file that checks whether the website is down and then it loads the OFFLINE website (note you must have previously visited the website). Here’s the batch file:

@ECHO OFF
ping -n 1 businesslegions.com | find "TTL" >nul: 2>nul:
if not errorlevel 1 goto :firefox
Echo LOADING WEBSITE IN OFFLINE MODE... PLEASE WAIT ...
"C:\Program Files\Mozilla Firefox\firefox.exe" -offline http://businesslegions.com
exit
:firefox
Echo LOADING WEBSITE ONLINE MODE... PLEASE WAIT ...
"C:\Program Files\Mozilla Firefox\firefox.exe" http://businesslegions.com
exit

You can download the above sample batch file here:

The other option would be to manually select OFFLINE in the Web developer but I prefer to launch this batch file when the computer starts to load a particular website.

DO YOU LIKE WHAT YOU'VE READ?
Join our subscription list and receive our content right in your mailbox. If you like to receive some Great deals our Freebies then subscribe now!

Our Sponsors

  • Follow us:

OTHER ARTICLES YOU MAY LIKE


USING THE LATEST CLAUDE MODEL TO BUILD GREAT TOOLS

USING THE LATEST CLAUDE MODEL TO BUILD GREAT TOOLS

If you have ever had an idea for a small tool but stopped because coding felt too hard, the latest Claude model makes that gap much smaller. You can now describe what you want in plain English, ask Claude to plan it, build the first version, improve the design, write the logic, test the workflow, […]

read more
REVIEWING AND UNBOXING THE TOOCKI USB-C RIGHT ANGLE 1.2M CABLE

REVIEWING AND UNBOXING THE TOOCKI USB-C RIGHT ANGLE 1.2M CABLE

USB C cables are among the most ordinary accessories we own, yet they can make a surprisingly noticeable difference to how comfortable our devices are to use while charging. The Toocki USB C right angle cable is a good example of a simple accessory that tries to solve a very common irritation, because instead of […]

read more

Like our Page