您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Use tabs to choose results
当前为
// ==UserScript== // @name Google tab paths // @description Use tabs to choose results // @include https://www.google.com/* // @author CennoxX // @contact [email protected] // @homepage https://twitter.com/CennoxX // @namespace https://gf.zukizuki.org/users/21515 // @version 0.7 // @grant none // ==/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; }