您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
auto foucs on first input box
当前为
// ==UserScript== // @name auto focus on first <input> // @name:zh 自动聚焦第一个输入框 // @namespace @Vinsea // @version 0.2.1 // @description auto foucs on first input box // @description:zh 默认聚焦到第一个搜索框中 // @author Vinsea // @match * // @match http*://*/* // @license MIT // ==/UserScript== (function() { 'use strict'; var firstInput = document.querySelector('input:not([type=hidden])'); if(firstInput){ var val = firstInput.value; firstInput.value = ''; firstInput.focus(); firstInput.value = val; } })();