您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Greasy Fork is available in English.
方便云图书馆检索已编目图书
// ==UserScript== // @name 云图书馆检索默认激活文本框 // @namespace www.ytsg.com // @version 0.2 // @description 方便云图书馆检索已编目图书 // @author 赵巍 // @match http://www.ytsg.com/searchbook?type=*&fromSearch=*&libCode=AAAKT&typeId=* // @require http://code.jquery.com/jquery-1.11.0.min.js // @grant none // ==/UserScript== (function() { 'use strict'; $("#app > section > div.contentBg > div > div > div:nth-child(2) > div:nth-child(2) > div > input[type=text]").focus();//焦点切换到分类号上 $(document.body).append("<script>$(document).keyup(function(event){if(event.keyCode ==13){$('button').trigger('click');}});</script>") // Your code here... })();