Mozilla Destek’te Ara

Destek dolandırıcılığından kaçının. Mozilla sizden asla bir telefon numarasını aramanızı, mesaj göndermenizi veya kişisel bilgilerinizi paylaşmanızı istemez. Şüpheli durumları “Kötüye kullanım bildir” seçeneğini kullanarak bildirebilirsiniz.

Daha Fazlasını Öğren

Printing Facebook posts don't work properly

more options

I'm trying to print (using a PDF printer), a post in Facebook. The comments get cut off on the left side, and only one page of the comments prints. See attachment. Please help?

Windows 10 Pro, 64 bit. Firefox 64.0.2

Things I have tried which have not made any difference: - Disabled all add-ons - Followed all instructions on "Fix printing problems in Firefox" - Printing to different printers.

I tried changing print scaling, and if I go down to 30%, the comments do not get cut off, but it is too small, and still only one page prints.

I was able to use Microsoft Edge to print it successfully, but it put grey lines over some things, and I hate Edge and don't want to use it.

I'm trying to print (using a PDF printer), a post in Facebook. The comments get cut off on the left side, and only one page of the comments prints. See attachment. Please help? Windows 10 Pro, 64 bit. Firefox 64.0.2 Things I have tried which have not made any difference: - Disabled all add-ons - Followed all instructions on "Fix printing problems in Firefox" - Printing to different printers. I tried changing print scaling, and if I go down to 30%, the comments do not get cut off, but it is too small, and still only one page prints. I was able to use Microsoft Edge to print it successfully, but it put grey lines over some things, and I hate Edge and don't want to use it.
Ekli ekran görüntüleri

Tüm Yanıtlar (3)

more options

It's pretty terrible. The post and comments are positioned for a left and right sidebar and when the sidebars runs out or are excluded from the selection, Firefox collapses the main column into the left margin. Annoying.

There are some hacky ways ways to make it better for printing, but the details are fidgety so consider this experimental.

Step 1: Ctrl+click (or middle-click) the post date to launch it into a new tab as a permalink. This places it at the top of the feed.

Step 2: Open the Web Console in the lower part of the new tab. Either:

  • "3-bar" menu button > Web Developer > Web Console
  • (menu bar) Tools > Web Developer > Web Console
  • (Windows) Ctrl+Shift+k

Step 3: Select and copy this script, and paste it into the command line of the console (starts with ») and press Enter to run it.

// Improve printing of FB posts
// Find the division marked class="permalinkPost"
var plp = document.querySelector('.permalinkPost');
if (plp){
  // If we found it, find the "main" ancestor node
  var main = plp.closest('[role="main"]');
  if (main){
    // If we found it, fix the positioning and widen it
    main.setAttribute('style', 'right: 0 !important; width: 100% !important');
	// Hide the sidebar to the right of it
    main.previousElementSibling.style.display = 'none';
	// Hide the top blue bar that prints on every page
    document.querySelector('#pagelet_bluebar').style.display = 'none';
  }
}

The first time, Firefox will ask you to do something to prove you understand it can be dangerous to run scripts from strangers. (It's true!)

If you need to print frequently, it would be nice to find a cleaner and quicker solution, but it's very late here already, so...

more options

OK, I just tried that and it had no effect.

There are a couple of more things I have tried since yesterday, with mixed success.

1. Add-on "Facebook Post Screenshot". On one post it worked perfectly. On a second post it accidentally left one of it's own processing graphics overlaying the post. On a third post, it failed to complete.

2. Add-on "Print Edit WE". It sometimes works, but only if:

  a. I view the post in the timeline, not by itself.
  b. With the add-on, select just that post & comments.
  c. Use Delete Except - Unrestricted.
  d. Tools: Fix Page Breaks

Neither method works all the time for any Facebook post.

more options

Hmm, possibly the permalink method didn't work on the post you were trying to print, or maybe that is only for company posts -- there weren't any personal posts in my timeline with more than 1 page of comments to test on. If I get time, I'll try to find another example to test on.