handleKey

快捷键处理函数

此脚本不应直接安装。它是供其他脚本使用的外部库,要使用该库请加入元指令 // @require https://update.gf.qytechs.cn/scripts/375077/670576/handleKey.js

  1. var handleKey = function (a, b, c) {
  2. var d = allElement.filter(function (t) {
  3. if (t.hasAttribute && t.hasAttribute('accesskey') && t.getAttribute('accesskey') == a ||
  4. t.classList.contains(b)) {
  5. if (t.offsetParent !== null) {
  6. if (!t.classList.contains(b)) {
  7. t.classList.add(b);
  8. t.removeAttribute('accesskey', '*');
  9. }
  10. c.push(allElement.indexOf(t));
  11. return t;
  12. }
  13. }
  14. });
  15. return d;
  16. }
  17.  

QingJ © 2025

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