[Greasemonkey] Changing HMTLTitleElement
j-san at j-san.net
Mon Apr 25 16:21:10 EDT 2005
I second that.
It's easy to focus so much on pulling apart the DOM and putting it back
together you forget the easy stuff.
Speaking of which. Don't think it will matter to many people but setting
document.title doesn't change the HTMLTitleElement in the DOM. If for
some reason you care you'd have to set them both.
[Aaron Boodman] said on [04/25/2005 3:14 PM]
>I vote that "you're trying to hard" become greasemonkey's official slogan.
>On 4/25/05, Simon Willison <cs1spw at bath.ac.uk> wrote:
>>On 25 Apr 2005, at 20:19, jason brackins wrote:
>>> I'm not sure if what I'm trying to do is even possible. After all,
>>>the label on the window picks up the Title element and sets itself
>>>long before the page finishes loading. Since the window label is
>>>hoping Firefox would notice the change in the DOM and react
>>>accordingly, but no joy. Anybody have any ideas?
>>You're trying too hard! All you need to do to change the title of the
>>page is assign a new string to document.title :
>>document.title = "My new title!";
>>Greasemonkey mailing list
>>Greasemonkey at mozdev.org
>Greasemonkey mailing list
>Greasemonkey at mozdev.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Greasemonkey