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!

Этот сайт имеет ограниченную функциональность, пока мы проводим техническое обслуживание для улучшения его работы. Если какая-либо статья не решила вашу проблему и вы хотите задать вопрос, наше сообщество поддержки ждёт вас: @FirefoxSupport в Твиттере и /r/firefox на Reddit.

Поиск в Поддержке

Избегайте мошенников, выдающих себя за службу поддержки. Мы никогда не попросим вас позвонить, отправить текстовое сообщение или поделиться личной информацией. Сообщайте о подозрительной активности, используя функцию «Пожаловаться».

Подробнее

Force same font on all websites.Add sites to exception list so they can use whatever fonts they need.

  • 3 ответа
  • 1 имеет эту проблему
  • 38 просмотров
  • Последний ответ от Gingerbread Man

more options

Hi and thank you for developing THE BEST browser in the world ! I'm trying to have all websites display text in Verdana but add, for example www.website-1.c0m and www.website-2.c0m, to exception so they will display all the fonts they need. From Firefox settings I disabled the box that allows sites to choose their own fonts and chose Verdana as default.Now I'm looking for a way to add exceptions.

There is a similar question here https://support.mozilla.org/en-US/questions/1017731

The author was suggested to use userContent.css to specify a specific font for a specific website.That is close to what I need but not quite the same.I want to know if it's possible to add an exception so a site can use whatever font(s) it needs.A site can use 4-5 different fonts on separate areas of the same page so it's really a pain to find all fonts for all the sites that I want to add to exception and add all the code to userContent.css.I wonder if there is a way to add specific sites to exception list rather than specifying what fonts they should be using.

If adding exception is not possible and I absolutely have to use userContent.css, how can I allow multiple fonts for www.website-1.c0m and www.website-2.c0m ? Let's say both sites use mixed Arial,Georgia and Tahoma on their pages (Ex: titles in Arial,paragraphs in Georgia,comment sections in Tahoma) Thanks !

Hi and thank you for developing THE BEST browser in the world ! I'm trying to have all websites display text in Verdana but add, for example www.website-1.c0m and www.website-2.c0m, to exception so they will display all the fonts they need. From Firefox settings I disabled the box that allows sites to choose their own fonts and chose Verdana as default.Now I'm looking for a way to add exceptions. There is a similar question here https://support.mozilla.org/en-US/questions/1017731 The author was suggested to use userContent.css to specify a specific font for a specific website.That is close to what I need but not quite the same.I want to know if it's possible to add an exception so a site can use whatever font(s) it needs.A site can use 4-5 different fonts on separate areas of the same page so it's really a pain to find all fonts for all the sites that I want to add to exception and add all the code to userContent.css.I wonder if there is a way to add specific sites to exception list rather than specifying what fonts they should be using. If adding exception is not possible and I absolutely have to use userContent.css, how can I allow multiple fonts for www.website-1.c0m and www.website-2.c0m ? Let's say both sites use mixed Arial,Georgia and Tahoma on their pages (Ex: titles in Arial,paragraphs in Georgia,comment sections in Tahoma) Thanks !

Выбранное решение

Hello,

Under Options/Preferences → Content → Advanced, make sure that "Allow websites to choose their own fonts" is checked.

  1. Install Stylish and restart Firefox when prompted.
  2. Click the Stylish icon on the navigation toolbar and choose Write New Style, then Blank style.
  3. Paste the following in the text box, give the style a name, then click the Save button.
    • Replace the placeholders (example-of-an-exception.com and so on) with the actual domain names in question. You can add more exceptions by adding a | pipe symbol after a domain name, then another domain name.

@namespace url(http://www.w3.org/1999/xhtml);
@-moz-document regexp("https?://(?!(example-of-an-exception.com|www.placeholder.site-exception.net)).*") {

* { font-family: Verdana !important }

}

If you don't want to install an add-on, you can use the userContent.css file instead, but I don't recommend it.

Прочитайте этот ответ в контексте 👍 2

Все ответы (3)

more options

Выбранное решение

Hello,

Under Options/Preferences → Content → Advanced, make sure that "Allow websites to choose their own fonts" is checked.

  1. Install Stylish and restart Firefox when prompted.
  2. Click the Stylish icon on the navigation toolbar and choose Write New Style, then Blank style.
  3. Paste the following in the text box, give the style a name, then click the Save button.
    • Replace the placeholders (example-of-an-exception.com and so on) with the actual domain names in question. You can add more exceptions by adding a | pipe symbol after a domain name, then another domain name.

@namespace url(http://www.w3.org/1999/xhtml);
@-moz-document regexp("https?://(?!(example-of-an-exception.com|www.placeholder.site-exception.net)).*") {

* { font-family: Verdana !important }

}

If you don't want to install an add-on, you can use the userContent.css file instead, but I don't recommend it.

more options

Stylish addon trick does exactly what I needed.Thanks. Should I expect noticeably slower page loads on some sites because of addon trying to change the text ?

more options

You're welcome.

There's no impact to page load time.