[Greasemonkey] GM_openInTab - tab's label
esquifit
esquifit at googlemail.com
Mon Jul 10 20:23:17 EDT 2006
This is also a problem when the document being loaded in the new tab is an
image (with a data: url). In this case its not possible to supply a <title>
tag or to manipulate the document with a script in any way.
A similar problem (although not related to GM) happens when downloading an
object with a data url: the download dialog shows the url instead of a more
friendly name.
Taken by the analogy with MIME format in mail attachments, I tried supplying
a 'name' argument to the application type:
'data:image/png;name="icon.png";base64,iVBORw0KGgoAAAANSUh...'
but unfortunately it didn't work, neither for the download dialog nor for
GM_openInTab. Any other idea?
2006/7/10, Johan Sundström <oyasumi at gmail.com>:
>
> > Is there anyway to control the new tab's name or label which results
> > from something like
>
> In my experience, this is what <title>My better name</title> tags do,
> at least when put in the <head> tag. I haven't tried this in an
> application/xml context though, and failing that, I would suggest
> trying a script tag in the document which sets document.title to your
> preferred title. Good luck!
>
> --
> / Johan Sundström, http://ecmanaut.blogspot.com/
> _______________________________________________
> Greasemonkey mailing list
> Greasemonkey at mozdev.org
> http://mozdev.org/mailman/listinfo/greasemonkey
>
More information about the Greasemonkey
mailing list