handleKey

快捷键处理函数

目前為 2019-02-14 提交的版本,檢視 最新版本

此腳本不應該直接安裝,它是一個供其他腳本使用的函式庫。欲使用本函式庫,請在腳本 metadata 寫上: // @require https://update.gf.qytechs.cn/scripts/375077/670487/handleKey.js

var handleKey = function (a, b, c) {
    var d = allElement.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.push(allElement.indexOf(t));
                return t;
            }
        }
    });
    return d;
}
})();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址