Can Greasemonkey cause the displayed title to change [duplicate]
-
02-07-2019 - |
Question
This question already has an answer here:
I want to change the title showing in a page based on information I pick up from within the page (eg to show the number of inbox messages)
document.getElementsByTagName('title')[0].innerHTML="foo";
does change the title tag, but firefox does not update the displayed title (in window and tags) when this happens.
Is this possible?
Solution
Try using this instead:
document.title = "MyTitle";
OTHER TIPS
Try setting document.title to the new value
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow