// ==UserScript== // @name 粉笔题库当前问题序号高亮 // @namespace http://tampermonkey.net/ // @version 2024-07-12 // @description 当前问题序号高亮 // @author AN drew // @match https://www.fenbi.com/spa/tiku/exam/practice/* // @match https://www.fenbi.com/spa/tiku/report/exam/solution/* // @require https://lib.baomitu.com/jquery/3.5.0/jquery.min.js // @license MIT // @grant GM_addStyle // @downloadURL none // ==/UserScript== (function() { 'use strict'; GM_addStyle(` fb-ng-ans-button.active > button { border: 1px solid orange !important; background: yellow !important; color: red !important; } #app-report-solution .fb-collpase-bottom .fb-collpase-content { max-height: 920px !important; } #app-practice .fb-collpase-bottom .fb-collpase-content { max-height: 920px !important; } fb-ng-solution-detail-item[name="视频"]{ display:none !important; } .material-nav button{ background:#0084ff; } .material-nav button:before{ filter:brightness(2); } .material-nav button span{ color:white!important; } .tools-container{ right: calc(50% - 680px)!important; } .solu-list{ background: #f2f2f545; } .production-rec-nav{ display:none!important; } `); let index; $("body").delegate(".solution-item","mouseover",function(){ index=$(this).find('a').attr('index'); $('fb-ng-ans-button').eq(index).addClass('active'); }) $("body").delegate(".solution-item","mouseout",function(){ $('fb-ng-ans-button').eq(index).removeClass('active'); }) $("body").delegate("section.exam-detail > div","mouseover",function(){ index=$(this).find('a').attr('name')-1; $('fb-ng-ans-button').eq(index).addClass('active'); }) $("body").delegate("section.exam-detail > div","mouseout",function(){ $('fb-ng-ans-button').eq(index).removeClass('active'); }) })();