Hide Solutions

Hide the link to solutions on Luogu and Atcoder

  1. // ==UserScript==
  2. // @name Hide Solutions
  3. // @namespace http://tampermonkey.net/
  4. // @version v1.0.0
  5. // @description Hide the link to solutions on Luogu and Atcoder
  6. // @author limesarine
  7. // @match *://www.luogu.com.cn/*
  8. // @match *://atcoder.jp/*
  9. // @license © 2024 Limesarine. All rights reserved.
  10. // @icon https://www.google.com/s2/favicons?sz=64&domain=luogu.com.cn
  11. // @grant none
  12. // ==/UserScript==
  13.  
  14. (function(){
  15. 'use strict';
  16. const observer=new MutationObserver(()=>{
  17. let tmp=document.getElementsByTagName('a');
  18. for(let i in tmp) {
  19. if(tmp[i] && tmp[i].innerHTML && (tmp[i].innerHTML.includes('Editorial') || tmp[i].innerHTML.includes('查看题解'))) {
  20. tmp[i].style.display='none';
  21. }
  22. }
  23.  
  24. });
  25. observer.observe(document.documentElement,{childList:true,subtree:true});
  26. })();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址