2011-09-26 122 views

回答

2

我不认为这是可能的Chrome加载项。至于Firefox - 当然,在主浏览器窗口(browser.xul)中有<command> element,ID Browser:SavePage,在one of the include files中定义。您可以为此元素上的command事件添加侦听器,例如:

document.getElementById('Browser:SavePage').addEventListener('command', function(e) { 
    console.log('doing command', 'id:', e.target.id, 'e:', e); 
}, false); 
相关问题