├── tapswap_autoclicker.js ├── LICENSE ├── tapswap_web.user.js └── README.md /tapswap_autoclicker.js: -------------------------------------------------------------------------------- 1 | // Programmer: @NabiKAZ (https://twitter.com/NabiKAZ) 2 | // TapSwap Telegram game automatic clicker! 3 | // First, run the game on the computer by the method I said here: https://github.com/NabiKAZ/TapSwap-Scripts?tab=readme-ov-file#1-run-on-computer 4 | // Then copy and paste the following code in your browser's console tab (press F12). The magic will be started! 5 | // To stop, write this: "clearInterval(i);" 6 | // Caution: You are responsible for possible risks such as banning. 7 | // The game link: https://t.me/tapswap_mirror_2_bot?start=r_101554083 8 | 9 | var delay = 50; 10 | var i = setInterval(() => { 11 | var el = document.querySelector('#ex1-layer'); 12 | var rect = el.getBoundingClientRect(); 13 | var x = rect.left + rect.width / 2; 14 | var y = rect.top + rect.height / 2; 15 | var event = new PointerEvent('pointerdown', { 16 | clientX: x, 17 | clientY: y, 18 | }); 19 | el.dispatchEvent(event); 20 | }, delay); 21 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2024 Nabi KaramAliZadeh 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /tapswap_web.user.js: -------------------------------------------------------------------------------- 1 | // ==UserScript== 2 | // @name TapSwap open on the web 3 | // @namespace https://github.com/NabiKAZ/TapSwap-Scripts 4 | // @version 0.1 5 | // @description TapSwap open on the web 6 | // @author https://twitter.com/NabiKAZ 7 | // @match https://app.tapswap.club/* 8 | // @match https://web.telegram.org/k/* 9 | // @grant none 10 | // @run-at document-start 11 | // ==/UserScript== 12 | 13 | (function() { 14 | 'use strict'; 15 | 16 | //Bypassing the mobile version of Tapswap 17 | window.ontouchstart = true; 18 | 19 | //Getting the Telegram mini app iframe URL 20 | const observer = new MutationObserver(mutations => { 21 | mutations.forEach(mutation => { 22 | mutation.addedNodes.forEach(node => { 23 | if (node.nodeType === 1) { 24 | node.querySelectorAll('iframe').forEach(el => { 25 | el.src = el.src.replace(/(tgWebAppPlatform=)[^&]+/, "$1android"); 26 | console.log('-='.repeat(50)); 27 | console.log("Use this address in your browser:", el.src); 28 | console.log('-='.repeat(50)); 29 | }); 30 | } 31 | }); 32 | }); 33 | }); 34 | observer.observe(document.body, { childList: true, subtree: true }); 35 | })(); 36 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # TapSwap 2 | Here I wrote a collection of simple and practical TapSwap telegram game scripts without any complications. \ 3 | My game link: [https://t.me/tapswap_mirror_2_bot?start=r_101554083](https://t.me/tapswap_mirror_2_bot?start=r_101554083) 4 | 5 | # Caution 6 | You are responsible for the possible risks of using these scripts, such as getting banned. 7 | 8 | # Run 9 | Scripts: 10 | 11 | ## 1. Run on computer 12 | Script file: `tapswap_web.user.js` \ 13 | First, install the [TamperMonkey](https://www.tampermonkey.net/) plugin on your browser. \ 14 | Then install this script in the plugin by opening it in the browser and clicking install. \ 15 | Now to run TapSwap Telegram game on computer. Enter Telegram from this web version link: [https://web.telegram.org/k/](https://web.telegram.org/k/) \ 16 | Open the game. You won't see the fucking "_Leave the desktop. Mobile gaming rocks!_" message anymore. \ 17 | Also, by going to `Developer Tools` (press F12) and then the `Console` tab, when the game opens, you can also see its link and copy it and open it in a separate tab on your browser. 18 | 19 | ## 2. Auto clicker 20 | Script file: `tapswap_autoclicker.js` \ 21 | TapSwap Telegram game automatic clicker! \ 22 | First, run the game on the computer as described in the previous step. \ 23 | Then copy and paste this code in your browser's console tab (press F12). \ 24 | The magic will be started! \ 25 | Note: To stop, write this: `clearInterval(i);` 26 | 27 | # Video 28 | [https://www.youtube.com/watch?v=MeTYsPfCLKs](https://www.youtube.com/watch?v=MeTYsPfCLKs) 29 | 30 | # Donation 31 | If this project was useful for you and you are willing, you can make me happy by giving a Star at the top of this GitHub page. Also this is my wallet address for Donate: 32 | 33 | USDT (TRC20): `TEHjxGqu5Y2ExKBWzArBJEmrtzz3mgV5Hb` 34 | 35 | --------------------------------------------------------------------------------