Can Greasemonkey change the display title

I want to change the title displayed on the page based on the information that I pick up on the page (for example, to show the number of messages in the mailbox)

document.getElementsByTagName('title')[0].innerHTML="foo"; modifies the title tag, but firefox does not update the display title (in the window and tags) when this happens.

Is it possible?

+3
source share
2 answers

Try using this instead:

document.title = "MyTitle";
+13
source

Try setting document.title to a new value

+2
source

Source: https://habr.com/ru/post/1697599/


All Articles