开发者

Loading bookmarklet in a window with disabled Navigation Toolbar

开发者 https://www.devze.com 2023-01-04 07:29 出处:网络
Everybody knows how to run a bookmarklet or some javascript on a window: just click on your bookmarklet, or type \"javascript:function(){ etc. }\" in the Navigation Toolbar.

Everybody knows how to run a bookmarklet or some javascript on a window: just click on your bookmarklet, or type "javascript:function(){ etc. }" in the Navigation Toolbar.

But here is the situation. I open a detached window in Gmail, for example a detached window to compose an email, or a separate window for chat. Now this separate window does not have my Bookmarks Toolbar where I store my bookmarklet. And the Navigation开发者_JS百科 Toolbar is disabled: I can not type anything there.

How can I overcome this and still run some custom javascript on this window? Is it possible?


Use Firebug or your browser's JavaScript Console (in Chrome on OS X, the hotkey is Alt-Cmd-J, Firefox OS X is Shift-Cmd-J). Hack away.

0

精彩评论

暂无评论...
验证码 换一张
取 消