牛客网刷题隐藏题目

偷偷刷题,不被发现,卷死他们

  1. // ==UserScript==
  2. // @name 牛客网刷题隐藏题目
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.1
  5. // @description 偷偷刷题,不被发现,卷死他们
  6. // @author Miao
  7. // @match https://www.nowcoder.com/practice/*
  8. // @icon data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
  9. // @grant none
  10. // @license MIT
  11. // ==/UserScript==
  12.  
  13. (function() {
  14. 'use strict';
  15.  
  16. setTimeout(function(){
  17. //隐藏题目
  18. if(document.getElementsByClassName("flex-auto flex-row question-title hide-txt")[0]){
  19. document.getElementsByClassName("flex-auto flex-row question-title hide-txt")[0].remove()
  20. }
  21. //隐藏子标题
  22. if(document.getElementsByClassName("section-title")){
  23. var arr = document.getElementsByClassName("section-title")
  24. for(var i = 0; i < arr.length; i++) {
  25. arr[i].innerText = ''
  26. }
  27. }
  28. //隐藏特殊样式
  29. if(document.getElementsByClassName("question-sample section-content")){
  30. var a = document.getElementsByClassName("question-sample section-content")
  31. for(var j = 0; j < a.length; j++) {
  32. a[j].style.backgroundColor = 'white';
  33. }
  34. }
  35.  
  36. } ,1000)//隔5秒之后执行.应该就能解决这个问题了
  37.  
  38.  
  39. })();

QingJ © 2025

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