正文
增加 12 行删除 12 行
89 行未改动9091929394959697989910010110210310410583 行未改动189190191192193194195196197223 行未改动全部展开42142242342442542642742842961 行未改动49149249349449549649749849950023 行未改动524525526527528529530531532111 行未改动全部展开64464564664764864965065165229 行未改动68268368468568668768868969069169249 行未改动74274374474574674774874975028 行未改动89 行未改动//==/UserScript==setTimeout(function(){'use strict';let div=null;let interval=setInterval((function(){let color_AC=GM_getValue("color1","#52C41A");let color_WA=GM_getValue("color2","#E74C3C");let color_CE=GM_getValue("color3","#FADB14");let bkcolor=GM_getValue("color4","#EEEEEE");let divs=document.querySelectorAll('.problems');divs.forEach(d=>{if(d.parentElement.children[0].children[0]!=null&&d.parentElement.children[0].children[0].textContent.includes("NOI/NOI+/CTSC"))div=d;});if(div==null){return;}83 行未改动div.innerHTML="";let i=1;for(;i<=390;i++){let t=Math.floor(Math.random()*len);div.insertAdjacentHTML('beforeend',`<span data-v-45a12318 class="problem-id"><a data-v-12b24cc3 data-v-45a12318 href="/problem/${temp[t][0]}"colorscheme="default"class="color-default"title="${temp[t][1]}"data-v-f9624136="">${temp[t][0]}</a></span>`);}let posx=1,posy=1;draw(posx,posy,"#fff","#000");let ingame=0;223 行未改动全部展开function clearLines() {let linesCleared = 0;for (let row = ROWS - 1; row >= 0; row--) {if (board[row].every(cell => cell === 1)) {board.splice(row, 1);linesCleared++;for (let col = 0; col < COLS; col++) {clear(row + 1, col + 1);}61 行未改动let gameInterval;let gameOver=false;function initGame(){ingame=1;playerX=24;playerY=11;bullets=[];enemies=[];score=0;gameOver=false;23 行未改动function running(){spawnEnemy();setTimeout(running,1000-time);}running();function moveBullets(){for(let i=bullets.length-1;i>=0;i--){bullets[i].x--;if(bullets[i].x<0){111 行未改动全部展开moveBird();moveObstacles();spawnObstacle();checkCollisions();drawGame();}function moveBird() {velocity += gravity;birdY += velocity;29 行未改动for (let i = obstacles.length - 1; i >= 0; i--) {const obstacle = obstacles[i];if (obstacle.x === 0 &&(birdY >= obstacle.y && birdY < obstacle.y + obstacle.height)) {gameOver = true;break;}}}49 行未改动break;case 39:e.preventDefault();clear(posx,posy);if(posy<12)posy++;draw(posx,posy,"#fff","#000");break;case 40:e.preventDefault();28 行未改动89 行未改动9091929394959697989910010110210310410583 行未改动189190191192193194195196197223 行未改动全部展开42142242342442542642742842961 行未改动49149249349449549649749849950023 行未改动524525526527528529530531532111 行未改动全部展开64464564664764864965065165229 行未改动68268368468568668768868969069169249 行未改动74274374474574674774874975028 行未改动89 行未改动//==/UserScript==setTimeout(function(){'use strict';let div=null;let interval=setInterval((function(){let color_AC=GM_getValue("color1","#52C41A");let color_WA=GM_getValue("color2","#E74C3C");let color_CE=GM_getValue("color3","#FADB14");let bkcolor=GM_getValue("color4","#EEEEEE");let divs=document.querySelectorAll("#app > div.main-container.lside-nav > main > div > div.sidebar-container.reverse > div.main > div:nth-child(3) > div");divs.forEach(d=>{if(d.children[0]!=null&&d.children[0].children[0]!=null&&d.children[0].children[0].textContent.includes("NOI/NOI+/CTS"))div=d.children[1];});if(div==null){return;}83 行未改动div.innerHTML="";let i=1;for(;i<=390;i++){let t=Math.floor(Math.random()*len);div.insertAdjacentHTML('beforeend',`<span data-v-2e684a78 class="problem-id"><a data-v-12b24cc3 data-v-45a12318 href="/problem/${temp[t][0]}"colorscheme="default"class="color-default"title="${temp[t][1]}"data-v-f9624136="">${temp[t][0]}</a></span>`);}let posx=1,posy=1;draw(posx,posy,"#fff","#000");let ingame=0;223 行未改动全部展开function clearLines() {let linesCleared = 0;for (let row = ROWS - 1; row >= 0; row--) {if (board[row].every(cell => cell === 1)) {board.splice(row, 1);linesCleared++;for (let col = 0; col < COLS; col++) {clear(row + 1, col + 1);}61 行未改动let gameInterval;let gameOver=false;function initGame(){ingame=1;playerX=29;playerY=6;bullets=[];enemies=[];score=0;gameOver=false;23 行未改动function running(){spawnEnemy();setTimeout(running,1000-time);}running();function moveBullets(){for(let i=bullets.length-1;i>=0;i--){bullets[i].x--;if(bullets[i].x<0){111 行未改动全部展开moveBird();moveObstacles();spawnObstacle();checkCollisions();drawGame();}function moveBird() {velocity += gravity;birdY += velocity;29 行未改动for (let i = obstacles.length - 1; i >= 0; i--) {const obstacle = obstacles[i];if (obstacle.x === 0 &&(birdY >= obstacle.y && birdY < obstacle.y + obstacle.height)) {gameOver = true;break;}}}49 行未改动break;case 39:e.preventDefault();clear(posx,posy);if(posy<13)posy++;draw(posx,posy,"#fff","#000");break;case 40:e.preventDefault();28 行未改动