Buscar en Ayuda

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

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

  • 2 respuestas
  • 3 tienen este problema
  • 2 visitas
  • Última respuesta de 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".

Todas las respuestas (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.