If I edit background.js, have I to compile tbkeys.xpi, then? I'm not so expert.
Couldn't we simply edit the text file shown in Addons/tbkeys/Options? I tried to past your single line code there, but the hotkey doesn't work:
Code: Select all
{
"j": "window.goDoCommand('cmd_nextMsg')",
"k": "window.goDoCommand('cmd_previousMsg')",
"o": "window.goDoCommand('cmd_openMessage')",
"f": "window.goDoCommand('cmd_forward')",
"#": "window.goDoCommand('cmd_delete')",
"r": "window.goDoCommand('cmd_reply')",
"a": "window.goDoCommand('cmd_replyall')",
"x": "window.goDoCommand('cmd_archive')",
"c": "(function () { var kBlockRemoteContent = 1; var kAllowRemoteContent = 2; var msgHdr = gMessageDisplay.displayedMessage; if (msgHdr) { var remoteContentPolicy = msgHdr.getUint32Property('remoteContentPolicy'); if (remoteContentPolicy == kBlockRemoteContent) { setMsgHdrPropertyAndReload('remoteContentPolicy', kAllowRemoteContent); } else if (remoteContentPolicy == kAllowRemoteContent) { setMsgHdrPropertyAndReload('remoteContentPolicy', kNoRemoteContentPolicy); } window.content.focus(); } })();"
}