[Vimperator] JavaScript for Google Bookmark(let)

cRaig Forrester treehead at gmail.com
Sun Feb 24 06:49:11 PST 2008


`On Sat, Feb 23, 2008 at 11:20 AM, M. Terada <teramako at gmail.com> wrote:
> HI.
>
>  :js command is executed in chrome window, not the window of the
>  current web page.
>
>  You mybe need to replace "window" to "window.content.document.window"
>  and replace "document" to "window.content.document"

If I try that, I end up with:

gmark = function(){var
a=window.content.document.window,b=window.content.document,c=encodeURIComponent,d=a.open("http://www.google.com/bookmarks/mark?op=edit&output=popup&bkmk="+c(b.location)+"&title="+c(b.title),"bkmk_popup","left="+((a.screenX||a.screenLeft)+10)+",top="+((a.screenY||a.screenTop)+10)+",height=420px,width=550px,resizable=1,alwaysRaised=1");a.setTimeout(function(){d.focus()},300)};

...which gives me the following error:

        "TypeError: a has no properties."

So I think that's the wrong context.  I'm going to mess around with
"buffer."  that Martin mentions and see if I can get this to work.

cRaig

EOM


More information about the Vimperator mailing list