Greasy Fork is available in English.

handleKey

快捷键处理函数

Устаревшая версия на 06.02.2019. Перейти к последней версии.

Этот скрипт недоступен для установки пользователем. Он является библиотекой, которая подключается к другим скриптам мета-ключом // @require https://update.greasyfork.org/scripts/375077/668421/handleKey.js

var handleKey = function(a,b,c) {
    var d = zdElement.filter(function (t) {
        if (t.hasAttribute && t.hasAttribute('accesskey') && t.getAttribute('accesskey') == a ||
            t.classList.contains(b)) {
            if (t.offsetParent !== null) {
                if (!t.classList.contains(b)) {
                    t.classList.add(b);
                    t.removeAttribute('accesskey', '*');
                }
                c.Array.prototype.slice.call(zdElement.indexOf(t));
                return t;
            }
        }
    });
return d;
}