Google tab paths

Use tabs to choose the Google search results

  1. // ==UserScript==
  2. // @name Google tab paths
  3. // @version 0.8.0
  4. // @description Use tabs to choose the Google search results
  5. // @author CennoxX
  6. // @namespace https://gf.qytechs.cn/users/21515
  7. // @homepage https://github.com/CennoxX/userscripts
  8. // @supportURL https://github.com/CennoxX/userscripts/issues/new?title=[Google%20tab%20paths]%20
  9. // @match https://www.google.com/*
  10. // @icon https://www.google.com/s2/favicons?sz=64&domain=google.com
  11. // @grant none
  12. // @license MIT
  13. // ==/UserScript==
  14. /* jshint esversion: 11 */
  15. var results = document.querySelectorAll("a:has(h3:not(.bCOlv h3))");
  16. results.forEach((el, i) => el.tabIndex = i + 1);
  17. (document.querySelector("#pnnext") ?? {}).tabIndex = results.length + 1;

QingJ © 2025

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