您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
try to take over the world!
当前为
// ==UserScript== // @name Coinbrawl // @version 0.34 // @description try to take over the world! // @author You // @match https://www.coinbrawl.com/* // @grant none // @namespace https://greasyfork.org/users/25633 // ==/UserScript== //menu $('li:has(a[href$="/referrals"])').remove(); //ads $('div.panel-game-content:first').hide(); $('div.col-sm-9 > center').hide(); $('div.col-sm-3').hide(); if ( $("li.active a[href='/").length == 1 ){ //On main page $('div.col-sm-6').hide(); $('div.col-sm-4').hide(); $('div.col-sm-8').hide(); var BANKLIMIT = 1547444; var withdrawLimit = 10000; var startS = setInterval(function(){ var rawSta = $('#quick-stats > div > div > ul > li:nth-child(5) > span.value > span:nth-child(2)').text(); var rawTok = $('#quick-stats > div > div > ul > li:nth-child(6) > span.value > span:nth-child(2)').text(); var gold = $('#quick-stats > div > div > ul > li:nth-child(7) > span.value.text-success > span:nth-child(2)').text(); var cuurentBank = $('#quick-stats > div > div > ul > li:nth-child(9) > span.value.text-success > span:nth-child(2)').text(); var stamina = rawSta.split("/"); var token = rawTok.split("/"); //console.log('Stamina: ', parseInt(stamina[0]), "/", parseInt(stamina[1])); //console.log('Tokens: ', parseInt(token[0]), "/", parseInt(token[1])); //console.log('Gold: ', gold); if (token[0] > 0 ) { searchArena.click(); } if ( stamina[0] > 0 ) { setTimeout(function(){ $('#npc-battle-table > div > table > tbody > tr:nth-child(6) > td:nth-child(5) > a')[0].click(); },2000); } console.log('[BOT] Attacking Crystal Dragon or Player'); if ( gold > withdrawLimit && cuurentBank < BANKLIMIT ) { console.log('[BOT] Gold limit reached. Depositing to Bank'); top.location.href = "https://www.coinbrawl.com/bank/deposit_max"; } if (cuurentBank == BANKLIMIT) { console.log('[BOT] Bank has reached limit!'); //clearInterval(startS); } if ( top.location.href == "https://www.coinbrawl.com/recaptcha ){ setTimeout(function() {top.location.href = "https://www.coinbrawl.com"},10000); } },5000); var searchArena = $('#battle-table > div > p > a')[0]; searchArena.onclick=function(){ setTimeout(function(){ attackUser(); },2000); }; } else if ( $("li.active a[href='/bank").length == 1 ){ var gotoArena = setTimeout(function(){ top.location.href = "https://www.coinbrawl.com/"; },5000); } function attackUser(){ $('tbody:first > tr').each(function(){ if ( $(this).find('strong.text-success').html() > 4000 ){ // if ( $(this).find('div.text-warning').length > 0 || $(this).find('div.text-success').length > 0) { $(this).find('td > a')[0].click(); return; // } } }); }