jupyter运行快捷健(alt+R)

try to take over the world!

// ==UserScript==
// @name         jupyter运行快捷健(alt+R)
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  try to take over the world!
// @author       Sirius
// @include        http://localhost:8888/*
// @grant        none
// ==/UserScript==

var run=document.getElementsByClassName("toolbar-btn-label");
document.onkeydown = function(e) {
    if (82 == e.keyCode && e.altKey)
    {
        run.click();
    }
}