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


QUICK FIX TO CHANGE THE MAX SELL POWER TO LESS THAN 500W ON THE DEYE INVERTER

QUICK FIX TO CHANGE THE MAX SELL POWER TO LESS THAN 500W ON THE DEYE INVERTER

There are many reasons a home owner or installer might want to place a tight cap on how much solar power is exported to the public grid. Some households live under a strict export cap imposed by their local distribution network operator, others want to reduce export to focus on self consumption and battery charging, […]

read more
SUPABASE BACKUP TUTORIAL: USE DBEAVER TO EXPORT YOUR DATABASE SAFELY

SUPABASE BACKUP TUTORIAL: USE DBEAVER TO EXPORT YOUR DATABASE SAFELY

If you are building anything serious on Supabase, whether that is a client portal, a SaaS app, an internal dashboard, or even a small side project that is starting to get traction, having a reliable database backup process is one of those tasks that quickly moves from optional to essential. Supabase makes a lot of […]

read more

Like our Page