Back to scripts

加密游戏助手

game

在加密游戏模式中最大化收益

2024-03-21v1.0.0Community

使用风险自负。此脚本可能违反 Blooket 的服务条款。

Usage

Steps

  1. 进入加密游戏模式
  2. 运行脚本
  3. 自动完成加密挑战

Notes

  • 仅在加密游戏模式有效
  • 可能会降低游戏乐趣
  • 建议仅用于学习目的

Requirements

  • 必须在加密游戏模式中
  • 需要现代浏览器支持

Code

function cryptoHack() {
  const gameFrame = document.querySelector('#gameFrame');
  if (!gameFrame) {
    alert('Game frame not found!');
    return;
  }

  setInterval(() => {
    const cryptoElements = gameFrame.contentWindow.document.querySelectorAll('.styles__cryptoContainer___2rB3w-camelCase');
    cryptoElements.forEach(element => {
      const value = parseInt(element.getAttribute('data-value') || '0');
      if (value > 0) {
        element.click();
      }
    });

    const upgradeButtons = gameFrame.contentWindow.document.querySelectorAll('.styles__upgradeButton___3YKkN-camelCase');
    upgradeButtons.forEach(button => {
      if (!button.disabled) {
        button.click();
      }
    });
  }, 100);

  alert('Crypto Hack activated! Will auto-collect crypto and purchase upgrades.');
}

cryptoHack();

Changelog

Version 1.0.0

2024-03-21
  • 初始版本发布
  • 实现自动解密功能
  • 优化性能表现