문서의 선택한 두 판 사이의 차이를 보여줍니다.
양쪽 이전 판 이전 판 | |||
userscripts [2020/09/06 23:01] kwon37xi |
userscripts [2020/09/06 23:01] kwon37xi |
||
---|---|---|---|
줄 21: | 줄 21: | ||
(function() { | (function() { | ||
'use strict'; | 'use strict'; | ||
- | |||
- | var newMappings = { | ||
- | " | ||
- | " | ||
- | " | ||
- | " | ||
- | " | ||
- | " | ||
- | " | ||
- | " | ||
- | " | ||
- | " | ||
- | " | ||
- | " | ||
- | " | ||
- | " | ||
- | " | ||
- | }; | ||
// execute after all DOM loaded | // execute after all DOM loaded | ||
window.addEventListener(' | window.addEventListener(' | ||
- | | + | |
- | console.log(" | + | |
- | var i; | + | |
- | + | ||
- | for (i = 0; i < buttons.length; | + | |
- | if (buttons[i].accessKey) { | + | |
- | var accessKey = buttons[i].accessKey.toLowerCase(); | + | |
- | console.log(" | + | |
- | if (newMappings[accessKey]) { | + | |
- | buttons[i].accessKey = newMappings[accessKey]; | + | |
- | } | + | |
- | } | + | |
- | } | + | |
}, false); | }, false); | ||
})(); | })(); | ||
</ | </ | ||