您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
当前问题序号高亮
// ==UserScript== // @name 粉笔题库当前问题序号高亮 // @namespace http://tampermonkey.net/ // @version 2025.4.18 // @description 当前问题序号高亮 // @author AN drew // @match https://www.fenbi.com/spa/tiku/* // @match https://spa.fenbi.com/ti/exam/* // @require https://lib.baomitu.com/jquery/3.5.0/jquery.min.js // @license MIT // @grant GM_addStyle // ==/UserScript== (function() { 'use strict'; GM_addStyle(` .answer-btn.active{ border: 1px solid orange !important; background: yellow !important; color: red !important; } `); let index; $("body").delegate(".ti","mouseover",function(){ index=parseInt($(this).find('.title-index').text()); $('.answer-btn').eq(index).addClass('active'); }) $("body").delegate(".ti","mouseout",function(){ $('.answer-btn').eq(index).removeClass('active'); }) })();