Infinite Coins

change the amount of your coins to troll other people!

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name         Infinite Coins
// @namespace    http://tampermonkey.net/
// @version      1.1
// @description  change the amount of your coins to troll other people!
// @author       Turbo
// @match        https://agma.io/
// @icon         https://www.google.com/s2/favicons?sz=64&domain=agma.io
// @grant        none
// ==/UserScript==

(function() {
    'use strict';
var ischecked = false;
var checkbox = document.createElement('input');
checkbox.type = 'checkbox';
checkbox.id = 'myCheckbox';
checkbox.name = 'myCheckbox';
var label = document.createElement('label');
label.textContent = 'Press to get infinite coins!';
label.setAttribute('for', 'myCheckbox');
var settingTab3 = document.getElementById('userSettings');
settingTab3.appendChild(checkbox);
settingTab3.appendChild(label);
checkbox.addEventListener('change', function() {
  if (checkbox.checked) {
    console.log('Checkbox is checked. Set to true.');
    ischecked = true;
    var coinPrompt = window.prompt("How much coins do u want?\n Type a number below")
    var coinPromptNum = coinPrompt.value
    document.getElementById("coinsDash").textContent = coinPrompt;
    document.getElementById("coins").textContent = coinPrompt
    curserMsg(`Coins Applied!`, 'green')
  } else {
    console.log('Checkbox is not checked. Set to false.');
    ischecked = false;
    curserMsg(`Check the box again to change coins`, 'red')
  }
});
})();