Greasy Fork is available in English.
当前问题序号高亮
// ==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');
})
})();