Where did you install Firefox from? Help Mozilla uncover 3rd party websites that offer problematic Firefox installation by taking part in our campaign. There will be swag, and you'll be featured in our blog if you manage to report at least 10 valid reports!

Search Support

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

Customize built-in PDF viewer

  • 3 iimpendulo
  • 1 inayo le ngxaki
  • 1 view
  • Impendulo yokugqibela ngu wyt94yx

more options

Is it possible to remove the printer button and download button in built-in PDF viewer by userContent.css?

Is it possible to remove the printer button and download button in built-in PDF viewer by userContent.css?

Isisombulu esikhethiweyo

Do you already have a userContent.css file set up?

/*** Hide buttons in the PDF Viewer Toolbar ***/

/* Main toolbar */
#toolbarViewer #print,
#toolbarViewer #download {
  display: none !important;
}

/* Secondary toolbar (drop-down) */
#secondaryToolbar #secondaryPrint,
#secondaryToolbar #secondaryDownload {
  display: none !important;
}
Funda le mpendulo kwimeko leyo 👍 1

All Replies (3)

more options

I found their button-id "secondaryPrint" and "secondaryDownload", but I don't know how to remove them in userContent.css.

more options

Isisombululo esiKhethiweyo

Do you already have a userContent.css file set up?

/*** Hide buttons in the PDF Viewer Toolbar ***/

/* Main toolbar */
#toolbarViewer #print,
#toolbarViewer #download {
  display: none !important;
}

/* Secondary toolbar (drop-down) */
#secondaryToolbar #secondaryPrint,
#secondaryToolbar #secondaryDownload {
  display: none !important;
}
more options

@jscher2000 Thank you so much!! It totally works!!

Ilungisiwe ngu wyt94yx