Skip to content

Repository files navigation

basedblocks-keepalive 🛡️

持续挖矿,随时在线! 🚀
Keep mining alive, uninterrupted! 💎

本脚本为纯前端注入工具,专为 basedblocks.xyz(Base Network)设计。当挖矿过程检测到卡顿或有效哈希时,自动在“停止挖矿”🔴与“开始挖矿”🟢按钮之间切换,保障挖矿持续运行。⛏️

仅用于教学公开,开发者不对任何使用行为负责。欢迎捐赠支持开发维护。 🎁

  • SOL 捐赠地址: 7CwDTxfQUmGcTmT2LCyKfuyPM7ZqfSPtaCcHG1zwfbMA 💰
  • BASE (ETH) 捐赠地址: 0x38c1c29a4ee56531b6e5a688e4c147221afb7e41 🪙

🌟 Project Overview / 项目概述 🌍

EN: basedblocks-keepalive is a front-end script for basedblocks.xyz (Base Network). It automatically restarts mining when the process stalls or a valid hash is generated, by simulating clicks on the STOP/START MINING buttons. 🔄
CN: basedblocks-keepalive 是专为 basedblocks.xyz(Base Network)开发的前端脚本,当挖矿卡顿或检测到有效哈希时,将自动在“停止挖矿”🔴和“开始挖矿”🟢按钮之间切换,确保挖矿不中断。⛏️

📝 Detailed Description / 详细说明 📖

  • 🌐 Current Support / 当前支持: 仅在 basedblocks.xyz 测试通过;🧪
  • ⚠️ Token Value Risk / 代币价值不确定: 代币尚无稳定价值,一次 Claim 会产生额外 Gas 费用,不建议频繁 Claim。建议持续挂机,待价值明确后再逐笔 Claim;⏳
  • 💰 Mining Yield / 挖矿产出(截至04/25/2025): 默认每次可挖 500 个代币;平台不会回收您已挖代币,安全保留;🔐
  • 👥 Project Roles / 项目角色: 本脚本开发者 与 basedblocks.xyz 平台方 非同一主体,仅提供自动化功能,不承担平台运营、资产管理或收益分配责任。

本项目采用 MIT License 📝,仅作教学演示,任何法律或道德风险请自行承担。⚖️


🛠️ 使用方法 / Usage 🖥️

🪟 Windows + Chrome 🎯

  1. 在 Chrome 中访问 https://basedblocks.xyz。🌐
  2. F12 打开 开发者工具,切换到 Console 标签页。🛠️ ( CTRL+SHIFT+J inspect(检查) 如果F12无效)
  3. 点击面板空白处(帮助定位输入行),切换到英文输入法,输入:
    allow pasting
    
    • (第一步定位输入行;第二步解除粘贴保护)🔓
  4. Enter,然后粘贴脚本并再次按 Enter 执行。▶️

🍎 macOS + Safari 🎬

  1. 打开 Safari,进入 Safari > 设置 > 高级,勾选 在菜单栏中显示“开发”菜单。⚙️
  2. 访问 https://basedblocks.xyz。🌐
  3. 在菜单栏选择 开发 > 显示 JavaScript 控制台,点击 控制台空白处 定位输入行。🔍
  4. 切换到英文输入法,输入:
    allow pasting
    
  5. Enter,然后粘贴脚本并再次按 Enter 执行。▶️

备注allow pasting 用于解除 DevTools 的自我 XSS 防护,在 Chrome 和 Safari 中通用。🛡️


🔧 脚本代码 / Script Code 💻

// —— 全局状态
let lastAttempt = null;
let lastValidHashTime = 0;

// —— 拦截并扩展 console.log
(function() {
  const origLog = console.log;
  console.log = function(...args) {
    const msg = args[0];
    if (typeof msg === 'string' &&
       (msg.includes("Valid hash found:") || msg.includes("找到有效的哈希值:"))) {
      console.warn("⛏️ 有效哈希检测到,触发重启...");
      lastValidHashTime = Date.now();
      restartMining();
    }
    origLog.apply(console, args);
  };
})();

// —— 获取尝试次数元素
function getAttemptDiv() {
  return Array.from(document.querySelectorAll('div.pixel-text')).find(el =>
    /attempt:/.test(el.textContent) || //.test(el.textContent)
  );
}

// —— 获取停止/开始按钮
function getStopButton() {
  return Array.from(document.querySelectorAll('button')).find(btn =>
    btn.textContent.includes('STOP MINING') || btn.textContent.includes('停止挖矿')
  );
}
function getStartButton() {
  return Array.from(document.querySelectorAll('button')).find(btn =>
    btn.textContent.includes('START MINING') || btn.textContent.includes('开始挖矿')
  );
}

// —— 重启挖矿流程
function restartMining() {
  const stopBtn = getStopButton();
  const startBtn = getStartButton();
  if (stopBtn) stopBtn.click();
  setTimeout(() => {
    if (startBtn) startBtn.click();
  }, 1000);
}

// —— 定时检查尝试次数卡顿
setInterval(() => {
  const el = getAttemptDiv();
  if (!el) return;
  const m = el.textContent.match(/(?:attempt:|)\s*(\d+)/);
  if (!m) return;
  const currentAttempt = parseInt(m[1], 10);
  if (lastAttempt !== null && currentAttempt === lastAttempt &&
      Date.now() - lastValidHashTime > 5000) {
    console.warn("📷 尝试卡住,重启挖矿...");
    restartMining();
  }
  lastAttempt = currentAttempt;
}, 1000);

📄 License & Disclaimer / 许可证与免责声明 📜

  • 本项目遵循 MIT License。✅
  • 仅用于教学公开,开发者不对任何使用行为负责,任何法律或道德风险请自行承担。⚖️
  • 欢迎捐赠,支持脚本维护与更新。🙏

🇬🇧 English Version 📝 🇬🇧

Project Name: basedblocks-keepalive
Slogan: Keep mining alive, uninterrupted!✨

Overview: basedblocks-keepalive is a front-end script for basedblocks.xyz (Base Network). It monitors console logs for valid hashes and page elements for attempt counts. When mining stalls or a valid hash is found, it automatically clicks STOP and START buttons to maintain continuous mining. 🔄

Details:

  • Support: Tested on basedblocks.xyz only.🧪
  • Token Value Risk: The token’s future value is uncertain; a claim incurs gas fees. Frequent claims are not recommended.⚠️
  • Yield (04/25/2025): Up to 500 tokens per session; tokens remain on-chain safely; platform does not reclaim.💰
  • Roles: Script developer is independent from the basedblocks.xyz platform and bears no responsibility for platform operations or asset management.👥

Usage:

  • Chrome (Windows): F12 → Console → click blank → switch to EN input → allow pasting → Enter → paste script → Enter.🖱️
  • Safari (macOS): Enable Develop menu → Develop → Show JavaScript Console → click blank → EN input → allow pasting → Enter → paste script → Enter.🖱️

License & Disclaimer:

  • MIT License.📜
  • For educational use only; no liability for any legal or ethical risks.⚖️
  • Donations welcome:💝
    • SOL: 7CwDTxfQUmGcTmT2LCyKfuyPM7ZqfSPtaCcHG1zwfbMA
    • BASE(ETH): 0x38c1c29a4ee56531b6e5a688e4c147221afb7e41

清除cookie就能删除程序/见图片/photo01.02.03. delete cookie

我昨天挂机一晚上结果原本55个未经验证起来只有12个未经验证了不过依旧是500个项目代币,反正我不验证纯粹挂着玩,目前没有价值害怕纯骗gas如果第一轮每次500个代币过去还没有具体的价值那就不挖了

这个的意思就是,区块挖出来你不验证就有可能是别人的

这个项目本身是浏览器的算力计算所以你可以通过浏览器计算计算出未经验证的区块,等有了代币价值再用一点点钱交易然后claim本次浏览器打开持续挖到的项目代币,但是浏览器关掉或者关机必然存在各种各样的问题,所以这个项目就是开机然后浏览器打开一直挂机,不然,用不用脚本你的数据都丢失,存在一种可能赚的就是你的gas费,我目前挖矿注册花了一点-允许浏览器计算然后获得未经验证的矿然后申领了一个500的BBSV就没了

About

basedblocks.xyz-自动网页保活

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors