洛谷系统维护主页显示

主页显示

  1. // ==UserScript==
  2. // @name 洛谷系统维护主页显示
  3. // @version 0.3
  4. // @description 主页显示
  5. // @match https://www.luogu.com.cn/user*
  6. // @author MlkMathew
  7. // @license MIT
  8. // @grant none
  9. // @namespace https://greasyfork.org/users/1068192
  10. // ==/UserScript==
  11.  
  12. (function() {
  13. 'use strict';
  14. function work(){
  15. var s=document.querySelector("#app > div.main-container > main > div > div.full-container > section.main > div > div.introduction.marked");
  16. if(s&&s.style.display=='none'){
  17. document.querySelector("#app > div.main-container > main > div > div.full-container > section.main > div > div:nth-child(2)").remove();
  18. document.querySelector("#app > div.main-container > main > div > div.full-container > section.main > div > div.introduction.marked").style="";
  19. }
  20. }
  21. window.addEventListener('load',function(){
  22. document.querySelector("#app > div.main-container > main > div > div.card.user-header-container.padding-0 > div.user-header-bottom > div.menu").addEventListener("click",work);
  23. work();
  24. },false);
  25. document.querySelector("#app > div.main-container > main > div > div.card.user-header-container.padding-0 > div.user-header-bottom > div.menu").addEventListener("click",work);
  26. work();
  27. })();