I’m sure you can imagine the horrific screams of people as their printers started spewing coupons, ads, etc. from their printer while surfing a web site without the precious print dialog box to ‘cancel’ printing things automatically. But as i…
I’m sure you can imagine the horrific screams of people as their printers started spewing coupons, ads, etc. from their printer while surfing a web site without the precious print dialog box to ‘cancel’ printing things automatically. But as it turns out, using
In Firefox, hit CTRL-T to open a new tab so you can keep reading this, clear out the address bar if it’s not already blank, and type this where you’d otherwise type in a URL like www.google.com:
This will bring up all kinds of configuration settings about the browser.
So on the page with all of these configuration options, simply right-click on the list of options, select ‘New’ and choose ‘Boolean’ — this is important, you MUST choose a Boolean type, not string or integer. The name of the setting is this:
When you click the OK button, it will prompt you to select the true or false value. Select "true". Voila … instant change. The moficiation gets written into your preferences file, and now every page you visit with a window.print() call will spew paper out of your printer like a baby who doesn’t like mushed spinach.
To turn the feature back off, you can just double-click it in the about:config list. If you can’t find it, just use the "Filter:" box, and type the word ‘silent’ as the search option and hit ENTER, and it should locate it.
I’ve tested this on Ubuntu/Debian and Firefox 1.0.7. Feel free to comment back on this if you’ve tested this on other OS’s or versions of Firefox. You can even build an auto-printing page to see it in action:
<title>Ian was here</title>
This is my auto-printing page!
Other things worth noting:
- if you misspell the new option name, I don’t believe Firefox can delete the key for you – you may need to manually (and *carefully*) edit your preferences file.
- likewise, if you don’t choose a Boolean value (I tried a ‘string’ value first), you must also manually (and carefully) modify your preferences file. Leave a comment here if you don’t know here your prefs.js file is and I’ll see if I can help you track it down.
- if you get other print configuration warnings and no printer output, then you should check your other printer settings in Firefox to ensure they’re set up properly.