力扣自动全屏

自动为每一个题目展开成全屏模式

  1. // ==UserScript==
  2. // @name 力扣自动全屏
  3. // @namespace Chalkim
  4. // @version 0.2
  5. // @description 自动为每一个题目展开成全屏模式
  6. // @author Chalkim
  7. // @match https://leetcode-cn.com/problems/*
  8. // @grant none
  9. // ==/UserScript==
  10.  
  11. (function() {
  12. 'use strict';
  13. var i = 0;
  14. var full = null;
  15. var interval = setInterval(function() {
  16. if(i > 5 * 60) {
  17. console.log("载不出来就算了吧憋肝了_(:з」∠)_");
  18. clearInterval(interval);
  19. }
  20. full = document.querySelector("path[d='M6 15H4v5h5v-2H6v-3zM4 9h2V6h3V4H4v5zm14 9h-3v2h5v-5h-2v3zM15 4v2h3v3h2V4h-5z']");
  21. if(full){
  22. clearInterval(interval);
  23. full.parentNode.parentNode.click();
  24. }
  25. ++i;
  26. }, 200);
  27. })();

QingJ © 2025

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