// ==UserScript== // @name Show/Hide ACed problems // @namespace http://tampermonkey.net/ // @version v1.2.0 // @description Show or hide accepted problem in the luogu training session // @author limesarine // @match https://luogu.com/training/* // @match https://luogu.com.cn/training/* // @match https://*.luogu.com/training/* // @match https://*.luogu.com.cn/training/* // @license © 2024 Limesarine. All rights reserved. // @icon https://www.google.com/s2/favicons?sz=64&domain=luogu.com.cn // @grant none // @downloadURL https://update.greasyfork.icu/scripts/492849/ShowHide%20ACed%20problems.user.js // @updateURL https://update.greasyfork.icu/scripts/492849/ShowHide%20ACed%20problems.meta.js // ==/UserScript== function getVal() { let e=document.getElementById('min-score'); e=e.value; if(e=='') { return 101; } if(e>=0 && e<=100) { return e; } return 101; } function displayAC(display) { let x=document.getElementsByClassName('border table')[0]; let val=getVal(); if(x){} else{return;} x=x.childNodes[2].childNodes; for(let i=1;i=val) { x[i].style.display=display; } } } function showAC() { let x=document.getElementsByClassName('border table')[0]; let val=getVal(); if(x){} else{return;} x=x.childNodes[2].childNodes; for(let i=1;i