[Greasemonkey] Changing HMTLTitleElement

Aaron Boodman zboogs at gmail.com
Mon Apr 25 14:14:03 EDT 2005


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
> > outside of the DOM the javascript can't get to it directly. I was
> > hoping Firefox would notice the change in the DOM and react
> > accordingly, but no joy. Anybody have any ideas?
> 
> Hi Jason,
> 
> 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!";
> 
> Cheers,
> 
> Simon Willison
> http://simon.incutio.com/
> 
> _______________________________________________
> Greasemonkey mailing list
> Greasemonkey at mozdev.org
> http://mozdev.org/mailman/listinfo/greasemonkey
>


More information about the Greasemonkey mailing list