From f8137f3664269389ed5561c89295ff72f984c035 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maximilian=20Ke=C3=9Fler?= Date: Sat, 22 Oct 2022 11:36:42 +0200 Subject: [PATCH] include winrate in shown stats, compact display --- onlinetichu-counter.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/onlinetichu-counter.js b/onlinetichu-counter.js index a1b1fe7..2bccf9d 100644 --- a/onlinetichu-counter.js +++ b/onlinetichu-counter.js @@ -1,6 +1,6 @@ // ==UserScript== // @name onlinetichu.com card counter -// @version 1.3.3 +// @version 1.3.4 // @description automatically count cards at onlinetichu.com // @match *://*.onlinetichu.com/Site/Game/Table/* // @author Maximilian Keßler @@ -216,8 +216,8 @@ function injectCounter() { playerTichuCoefficient.id = direction + 'PlayerTichuCoefficient'; playerTichuCoefficient.innerText = ''; - playerDiv.insertBefore(playerTichuCoefficient, playerTichu); playerDiv.insertBefore(playerMyLevel, playerTichu); + playerDiv.insertBefore(playerTichuCoefficient, playerTichu); } patchPlayerStats('south'); @@ -492,10 +492,10 @@ function injectCounter() { for(i in dirs) { stats = otc.stats[otc.playerNames[dirs[i]]]; if (stats != undefined) { - t = 'L ' + stats.general.level + ' A ' + stats.custom.abandonmentRate + '%'; + t = 'L' + stats.general.level + ' A' + stats.custom.abandonmentRate + ' W' + stats.general.winningPercentage + ''; otc.$playerMyLevel[dirs[i]].text(t); - t = 'T ' + stats.custom.tichuCoefficient + ' O ' + stats.custom.oneTwoCoefficient; + t = 'T' + stats.custom.tichuCoefficient + ' O' + stats.custom.oneTwoCoefficient; otc.$playerTichuCoefficient[dirs[i]].text(t); } else { otc.$playerMyLevel[dirs[i]].text('');