This file contains hidden or 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
function lazyGetter(aObject, aName, aLambda) { | |
Object.defineProperty(aObject, aName, { | |
get: function () { | |
var val = aLambda.call(aObject); | |
Object.defineProperty(aObject, aName, { value: val, writable: true }); | |
return val; | |
}, | |
configurable: true, | |
enumerable : true, | |
}); |
This file contains hidden or 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
XML.ignoreProcessingInstructions = false; | |
let xml = <> | |
<?xml-stylesheet type="text/css" href="chrome://browser/skin/"?> | |
<window id="twitt-popup" | |
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" | |
xmlns:xhtml="http://www.w3.org/1999/xhtml" | |
pack="start" | |
ondblclick="window.close()"> | |
<box id="dialog" style="padding: 10px; border: 2px solid #7B969C;"> | |
<hbox align="center" pack="center"> |
This file contains hidden or 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
// http://gyazo.com/39e1c43d0529375b589843b9e20d26ed.png | |
- Jetpack | |
- Jetpackの制限 | |
可能かどうか | |
- ショートカットキー | |
グローバルなショートカットキーのフックは可能? | |
Documentのイベントリスナーで実装する場合、画像ページでもショートカットキーは有効? |