您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Jumps automatically into the user name input field.
// ==UserScript== // @name DCU: Focus user name field. // @description Jumps automatically into the user name input field. // @author r2r // @version 1.0.8 // @match *://www.dcu.org // @namespace https://greasyfork.org/users/382804 // @license MIT // ==/UserScript== // date 2022-03-10 // log Updated for DCU March 2022 site overhaul. (function() { // Login form is initially hidden. Make it visible. // 2021-02-06: currently not required anymore. // var login_form = document.getElementsByClassName('login-form')[0]; // login_form.style.display = 'block'; // Move the input focus to username field. function focus_user_name() { var member_number = document.getElementsByName('username')[0]; member_number.focus(); } // Run after page is loaded. window.onload = focus_user_name; })();