您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
creates an alert box when someone enters a paid room, so you can do something else while waiting for other players
- // ==UserScript==
- // @name playground hustler - for chopcoin.io
- // @namespace namespace
- // @description creates an alert box when someone enters a paid room, so you can do something else while waiting for other players
- // @include http://chopcoin.io/*
- // @version 1.03
- // @grant none
- // ==/UserScript==
- var playOnce = true;
- checkPlayers();
- function checkPlayers() {
- var players = chopcoin.game.leaderboard.list.length;
- var pot = chopcoin.game.pot;
- if (players > 1 && playOnce && pot != 0) {
- alert('multiple players');
- playOnce = false;
- console.log('multiple players');
- }
- else if(players == 1) {
- playOnce = true;
- console.log('player reset');
- }
- setTimeout(function(){ checkPlayers(); }, 1000);
- }