taming.io

ngu

このスクリプトは単体で利用できません。右のようなメタデータを含むスクリプトから、ライブラリとして読み込まれます: // @require https://update.sleazyfork.org/scripts/593576/1916878/tamingio.js

スクリプトをインストールするには、Tampermonkey, GreasemonkeyViolentmonkey のような拡張機能のインストールが必要です。

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

スクリプトをインストールするには、TampermonkeyViolentmonkey のような拡張機能のインストールが必要です。

スクリプトをインストールするには、TampermonkeyUserscripts のような拡張機能のインストールが必要です。

このスクリプトをインストールするには、Tampermonkeyなどの拡張機能をインストールする必要があります。

このスクリプトをインストールするには、ユーザースクリプト管理ツールの拡張機能をインストールする必要があります。

(ユーザースクリプト管理ツールは設定済みなのでインストール!)

このスタイルをインストールするには、Stylusなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus などの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus tなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

(ユーザースタイル管理ツールは設定済みなのでインストール!)

このスクリプトの質問や評価の投稿はこちら通報はこちらへお寄せください
作者
Bt Jcx (Tdtt)
バージョン
0.0.1.20260830121337
作成日
2026/08/30
更新日
2026/08/30
大きさ
1.07KB
ライセンス
不明

// ==UserScript==
// @name Taming.io Auto Farm
// @match https://taming.io/*
// @grant none
// ==UserScript==

(function() {
'use strict';

let autoFarm = true;
let autoHeal = true;

function pressKey(key) {
document.dispatchEvent(new KeyboardEvent('keydown', { key: key }));
setTimeout(() => {
document.dispatchEvent(new KeyboardEvent('keyup', { key: key }));
}, 100);
}

// Auto-farm resources every 500ms
setInterval(() => {
if (autoFarm) pressKey("e"); // Default hit/gather key
}, 500);

// Auto-heal when HP drops
setInterval(() => {
let hpElement = document.querySelector("#health-bar");
if (hpElement && autoHeal) {
let hp = parseInt(hpElement.style.width.replace("%", ""));
if (hp < 30) pressKey("q"); // Consumes gapples/food
}
}, 1000);

// Toggle controls
document.addEventListener("keydown", (e) => {
if (e.key === "f") autoFarm = !autoFarm;
if (e.key === "h") autoHeal = !autoHeal;
});
})();