Join the AMA (Ask Me Anything) with the Firefox leadership team to celebrate Firefox 20th anniversary and discuss Firefox’s future on Mozilla Connect. Mark your calendar on Thursday, November 14, 18:00 - 20:00 UTC!

Spletno mesto bo delovalo z omejenimi zmožnostmi, medtem ko na njem izvajamo vzdrževalna dela za vas. Če članki ne rešijo vaše težave in želite zastaviti vprašanje, naša skupnost za podporo čaka na vas na @FirefoxSupport na Twitterju in na /r/firefox na Redditu.

Iskanje po podpori

Izogibajte se prevarantski tehnični podpori. Nikoli vam ne bomo naročili, da pokličete telefonsko številko ali nam pošljete osebne podatke. Sumljivo dejavnost prijavite z gumbom »Prijavi zlorabo«.

Več o tem

An extra page prints before and after a page with the data, why?

  • 2 odgovora
  • 3 imajo to težavo
  • 2 ogleda
  • Zadnji odgovor od jbacinti

more options

If I go to www.allrecipes.com, select a recipe and click on the Print button, FF prints an extra blank page before and after the recipe. The recipe is short and easily fits on a single page. I've changed all the print settings so that even the Header & Footer info is set to "Blank".

If I go to www.allrecipes.com, select a recipe and click on the Print button, FF prints an extra blank page before and after the recipe. The recipe is short and easily fits on a single page. I've changed all the print settings so that even the Header & Footer info is set to "Blank".

Vsi odgovori (2)

more options

I don't understand why blank pages are generated, but I can help you with a quick hack if you like. This will strip off everything but the actual recipe area so that you can streamline the printout.

After you load the page and select your options:

  • Open Firefox web console using Ctrl+Shift+k
  • Next to the caret (>) paste the following script then press Enter to run it:
var rectbl = document.querySelector(".pageback table.recipeprinttable"); document.body.insertBefore(rectbl, document.body.firstChild); while(document.body.children.length>1) document.body.removeChild(document.body.children[1]);
  • Close the web console by pressing Ctrl+Shift+k again

When you preview the page, it should look ready for printing. Any luck?


Obviously that's not very convenient if you print a lot of recipes from this site, so you could save the script as a bookmarklet. Here's how:

First, copy this slightly modified script (select, Ctrl+c):

javascript: var rectbl = document.querySelector(".pageback table.recipeprinttable"); document.body.insertBefore(rectbl, document.body.firstChild); while(document.body.children.length>1) document.body.removeChild(document.body.children[1]); void 0;

Next, if you are not displaying the Bookmarks Toolbar, you can display it using either:

  • right-click a blank area of the tab bar > Bookmarks Toolbar
  • tap the Alt key > View menu > Toolbars > Bookmarks Toolbar

Right-click on the Bookmarks Toolbar and choose New Bookmark.

Paste the code into the Location box (the second box).

Then type a useful name in the Name box (e.g., AllRecipes) and click Add.

Now, when you want to hack the page, click the button to run the script.

more options

Thanks for the suggestion jscher2000 but you're correct; it's a lot of work. Someone had sent me another solution to this problem a few weeks ago but I can't find it. How do I know? Well I don't have the problem on my PC, only the one my wife uses so it's obviously related to the installation of FF on a particular PC. Hopefully someone else will remember the solution and remind me.