Skip to content

Instantly share code, notes, and snippets.

@magicdude4eva
Last active September 28, 2025 14:41
Show Gist options
  • Save magicdude4eva/11a9b24e2066a5f0198c6df241d5059f to your computer and use it in GitHub Desktop.
Save magicdude4eva/11a9b24e2066a5f0198c6df241d5059f to your computer and use it in GitHub Desktop.
Gomining Service Button Auto-Clicker (Browser Extension)

Gomining Service Button Auto-Clicker

This Chrome/Brave/Edge extension automatically clicks the Service Button on Gomining the moment it becomes enabled.
No more babysitting a 24h timer that drifts into the middle of the night.

πŸ’Ž Support / Donations

If this saved you from setting 3 am alarms, consider supporting:

πŸ‘‰ Signup and get 5% discount: https://gomining.com/?ref=FPPXXC5 🎁

πŸ’° Donate GOMINING tokens:

  • 🌐 ETH: 0xAc4aCb802f4Da6C546D70b4d9247cC3096a77172
  • 🟑 BSC: 0xAc4aCb802f4Da6C546D70b4d9247cC3096a77172
  • πŸ”΅ SOL: F4T53AnRKWZcBTSH9YAASGyk7Rtyd5Ysfs9Bs9984med

πŸ™ Thanks for fueling future tinkering!

visitors


How it works

  • Runs only on https://app.gomining.com/nft-miners
  • Injects a small script (content.js)
  • Watches the Service Button (service-button button.btn.btn-lg.btn-primary-theme)
  • When the button becomes active, it clicks it once automatically

Installation

  1. Download this Gist (both manifest.json and content.js).
  2. Open your browser and go to chrome://extensions.
  3. Enable Developer mode (top right).
  4. Click Load unpacked and select the folder containing these files.
  5. The extension is now installed.

Usage

  • Open https://app.gomining.com/nft-miners in a browser tab.
  • Keep that tab open (it can be pinned or in the background).
  • The extension will auto-click the Service Button whenever it becomes enabled.

Notes

  • Works only when the tab is open on /nft-miners.
  • Uses your logged-in session; no tokens or API keys required.
  • Script runs locally in your browser β€” nothing is sent anywhere else.
  • Built with Manifest v3, compatible with Chrome, Brave, and Edge.
const SEL = 'service-button button.btn.btn-lg.btn-primary-theme';
function log(...a){ console.log("[gom-auto]", ...a); }
function clickIfEnabled(btn) {
if (!btn) return false;
const enabled = !btn.hasAttribute("disabled") && btn.getAttribute("aria-disabled") !== "true";
if (enabled) {
// Guard against rapid double clicks
const last = Number(btn.getAttribute("data-gom-auto-clicked") || 0);
const now = Date.now();
if (now - last < 8000) return false;
log("Enabled β†’ clicking");
btn.setAttribute("data-gom-auto-clicked", String(now));
btn.click();
return true;
}
return false;
}
function attachObserver(btn) {
if (!btn) return;
const obs = new MutationObserver(() => clickIfEnabled(btn));
obs.observe(btn, { attributes: true, attributeFilter: ["disabled", "aria-disabled", "class"] });
log("Observer attached");
}
function start() {
const btn = document.querySelector(SEL);
if (!btn) {
setTimeout(start, 1500); // Angular renders; wait and retry
return;
}
clickIfEnabled(btn);
attachObserver(btn);
// Fallback poll, just in case the UI toggles enablement via classes only
setInterval(() => clickIfEnabled(document.querySelector(SEL)), 30_000);
}
start();
{
"manifest_version": 3,
"name": "Gomining Service Autoclick",
"version": "0.1.0",
"description": "Auto-clicks the Gomining Service Button when it becomes enabled.",
"content_scripts": [
{
"matches": ["https://app.gomining.com/nft-miners*"],
"js": ["content.js"],
"run_at": "document_idle"
}
],
"permissions": []
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment