Шукати в статтях підтримки

Остерігайтеся нападів зловмисників. Mozilla ніколи не просить вас зателефонувати, надіслати номер телефону у повідомленні або поділитися з кимось особистими даними. Будь ласка, повідомте про підозрілі дії за допомогою меню “Повідомити про зловживання”

Learn More

Ця тема перенесена в архів. Якщо вам потрібна допомога, запитайте.

Customize built-in PDF viewer

  • 3 відповіді
  • 1 має цю проблему
  • 1 перегляд
  • Остання відповідь від 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?

Обране рішення

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;
}
Читати цю відповідь у контексті 👍 1

Усі відповіді (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

Вибране рішення

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!!

Змінено wyt94yx