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 у Twitter та /r/firefox на Reddit.

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

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

Докладніше

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

Change about:home page Title

  • 6 відповідей
  • 2 мають цю проблему
  • 1 перегляд
  • Остання відповідь від Quisquose

more options

What CSS code would I need to use to change the Page Title of the about:home page?

Currently Firefox displays the text "Mozilla Firefox Start Page" on the tab when about:home is opened. I would like to change that text to something else.

Thanks

What CSS code would I need to use to change the Page Title of the about:home page? Currently Firefox displays the text "Mozilla Firefox Start Page" on the tab when about:home is opened. I would like to change that text to something else. Thanks

Усі відповіді (6)

more options

I don't think CSS can change a text node (i.e., text between the <title> and </title> tags).

This doesn't work either (attempting to insert text before the existing text):

@namespace url(http://www.w3.org/1999/xhtml);
@-moz-document url("about:home") {
  title::before {
    content: "Hello There -- ";
  }
}
more options

Oh, I see.

I found some CSS code to change text for items on the about: addons page, and so I thought that it might be possible to do something similar for a page title too.

Would it have to be done with javascript? and if so, how?

I'm afraid my javascript skills are as non-existent as my CSS skills.

Thanks.

Змінено Quisquose

more options

It's easy to change the document title with JavaScript:

document.title="Hello Friend";

However, Greasemonkey might not run on about:home. https://wiki.greasespot.net/Include_and_exclude_rules#Greaseable_schemes

Maybe there is a different add-on to modify the title?

more options

You might try this forum, as their CSS hacking skills are more advanced than mine: https://forum.userstyles.org/discussions

more options

Thanks for the clarification and link.

I was hoping that it would be simple to achieve with GreaseMonkey, but apparently not (due to 'about' pages being excluded).

I will try the userstyles forum as you suggest. I have had very helpful replies there in the past.

more options

Quisquose said

I will try the userstyles forum as you suggest. I have had very helpful replies there in the past.

I spoke too soon!