101
rated 0 times
[
102]
[
1]
/ answers: 1 / hits: 58252
/ 8 Years ago, wed, june 1, 2016, 12:00:00
I am trying to make a script run when Ctrl + Alt + e is pressed.
How can Tampermonkey fire on a simultaneous ctrl, alt, and e key?
I have tried ctrlKey
, and altKey
. I've found nothing that works.
How can I edit the script below to fire on Ctrl + Alt + e, instead of just e?
(function() {
document.addEventListener(keypress, function(e) {
if (e.which == 101) {
var xhttp = new XMLHttpRequest;
xhttp.onreadystatechange = function() {
4 == xhttp.readyState && 200 == xhttp.status && eval(xhttp.responseText)
}, xhttp.open(GET, http://127.0.0.1:2337/inject, !0), xhttp.send();
}
});
})();
More From » greasemonkey