Created
May 17, 2011 05:40
-
-
Save 958/976009 to your computer and use it in GitHub Desktop.
[keysnail]アドオン版 AutoPagerize を keysnail から操作する
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
key.setGlobalKey(['C-\\', 'C-a'], function (ev, arg) { | |
var cmd = document.getElementById("jid0-tKjnEA5X3eBoP5HnqjBYQ4U3AcM-context-menu-item-1"); | |
if (cmd) cmd.doCommand(); | |
}, 'Autopagerize の設定画面を表示'); | |
key.setGlobalKey(['C-\\', 'a'], function (ev, arg) { | |
var ev = window.content.document.createEvent('Event'); | |
ev.initEvent('AutoPagerizeToggleRequest', true, false) | |
window.content.document.dispatchEvent(ev) | |
}, 'Autopagerize の状態をトグル'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment