您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Use tabs to choose the Google search results
当前为
// ==UserScript== // @name Google tab paths // @version 0.7.1 // @description Use tabs to choose the Google search results // @author CennoxX // @contact [email protected] // @namespace https://gf.zukizuki.org/users/21515 // @homepage https://github.com/CennoxX/userscripts // @supportURL https://github.com/CennoxX/userscripts/issues/new?title=[Google%20tab%20paths]%20 // @include https://www.google.com/* // @icon https://www.google.com/s2/favicons?sz=64&domain=google.com // @grant none // @license MIT // ==/UserScript== var result = document.querySelectorAll('.yuRUbf>a'); for (var i = 0; i < result.length; i++) { result[i].tabIndex = i+1; } document.querySelector('[role="link"]').tabIndex = -1; document.querySelector('[role="link"]').nextElementSibling.tabIndex = -1; document.querySelector('[role="link"]').nextElementSibling.nextElementSibling.childNodes[2].tabIndex = -1; var nextLink = document.querySelector('#pnnext'); if (nextLink){ nextLink.tabIndex = i + 2; }