From a8f909e7e48f808f98a414d32bbec590dc5fbbe6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maximilian=20Ke=C3=9Fler?= Date: Sat, 22 Oct 2022 23:25:06 +0200 Subject: [PATCH] round winning percentage to one digit --- onlinetichu-counter.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/onlinetichu-counter.js b/onlinetichu-counter.js index 2bccf9d..bd4c40f 100644 --- a/onlinetichu-counter.js +++ b/onlinetichu-counter.js @@ -1,6 +1,6 @@ // ==UserScript== // @name onlinetichu.com card counter -// @version 1.3.4 +// @version 1.3.5 // @description automatically count cards at onlinetichu.com // @match *://*.onlinetichu.com/Site/Game/Table/* // @author Maximilian Keßler @@ -358,7 +358,7 @@ function injectCounter() { games: otc.util.extractFloat( c1[3].innerText), wins: otc.util.extractFloat( c1[4].innerText.split("-")[0]), defeats: otc.util.extractFloat( c1[4].innerText.split("-")[1]), - winningPercentage: otc.util.extractFloat( c1[5].innerText), + winningPercentage: (otc.util.extractFloat( c1[5].innerText)).toFixed(1), goldGames: otc.util.extractFloat( c1[6].innerText), goldWins: otc.util.extractFloat( c1[7].innerText.split("-")[0]), goldDefeats: otc.util.extractFloat( c1[7].innerText.split("-")[1]),