There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
 
Tag Cloud
access audio avg avg 8 bios blue screen boot browser bsod computer cpu crash css dell desktop driver drivers dvd email error excel explorer firefox firefox 3 freeze gimp graphics hard drive hardware hijackthis hjt install internet internet explorer itunes keyboard laptop macro malware missing monitor network networking outlook outlook 2003 outlook 2007 outlook express password popups problem problems router seo server slow sound sp3 spyware trojan usb video virtumonde virus vista vundo windows windows vista windows xp winxp wireless
Tech Tips & Tricks
Search
Search in:
 
Advanced Search
Tech Support Guy Forums > General Technology > Tech Tips & Tricks >
Change "Cannot be found" page in Firefox [advanced]


HELLO AND WELCOME! Before you can post your question, you'll have to register -- it's completely free! Click here to join today! We highly recommend that you print a copy of our Guide for New Members. Enjoy!

 
Thread Tools
Eriksrocks's Avatar
Computer Specs
Senior Member with 1,859 posts.
 
Join Date: Aug 2005
Location: Minnesota
Experience: Advanced
17-Feb-2006, 04:49 PM #1
Change "Cannot be found" page in Firefox [advanced]
This is a pretty complicated process, but if you really want to change that current page, follow the steps below...
  1. First, you have to close all Firefox windows, so you might want to print out these directions. For this process we are going through, you will need an unzipping utility. If you don't already have one, you can download the trial of WinZip here, or you can download the free ZipGenuis utility here.
  2. To start, navigate to the folder C:\Program Files\Mozilla Firefox\chrome. Before we start disecting Firefox, copy the file toolkit.jar and rename it toolkit.jar.old. Now, using your unzipping utility, unzip the file toolkit.jar (not toolkit.jar.old) to the desktop or your folder of choice.
  3. Inside the folder you unzipped it too, navigate to \content\global. You should see a bunch of files and several folders. Look for the file netError.xhtml. When you find it, right-click on it and go to Open With > and choose Wordpad. Replace the entire contents with this:
    HTML Code:
    <?xml version="1.0" encoding="UTF-8"?> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Page cannot be reached</title> <link rel="stylesheet" href="chrome://global/content/customerror.css" type="text/css" media="all" /> </head> <body> <!-- All body content STARTS HERE! --> <!-- All body content ENDS HERE --> </body> </html>
    Put all of your "body" HTML inbetween the two comment tags. Note that if you need to reference any other files, such as images, in the file above, you will need to use this format:
    chrome://global/content/FILENAME.ext
    You will also need to place the files in the same directory as netError.xhtml. Save and close the file.
  4. Now we need to make just one more file. Create a file named customerror.css in the same directory as netError.xhtml. Open the file in Notepad or Wordpad, and paste the following contents into it:
    HTML Code:
    body {
      font: Verdana;
    }
    Save the file. If you want custom CSS, the just put your custom CSS in the file above.
  5. Time to zip up! Now, using your zip utility, zip the contents of your folder into the file toolkit.jar. Replace your new toolkit.jar with the old one in C:\Program Files\Mozilla Firefox\chrome.
  6. Now test it, and hope it works.

If something goes majorly wrong with this tutorial, you can always rename the current toolkit.jar file to toolkit.jar.new and rename toolkit.jar.old to just toolkit.jar. This will restore the original settings.
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are Off
Refbacks are Off

You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 11:25 PM.
Copyright © 1996 - 2008 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Powered by Cermak Technologies, Inc.