round winning percentage to one digit
This commit is contained in:
parent
f8137f3664
commit
a8f909e7e4
1 changed files with 2 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
||||||
// ==UserScript==
|
// ==UserScript==
|
||||||
// @name onlinetichu.com card counter
|
// @name onlinetichu.com card counter
|
||||||
// @version 1.3.4
|
// @version 1.3.5
|
||||||
// @description automatically count cards at onlinetichu.com
|
// @description automatically count cards at onlinetichu.com
|
||||||
// @match *://*.onlinetichu.com/Site/Game/Table/*
|
// @match *://*.onlinetichu.com/Site/Game/Table/*
|
||||||
// @author Maximilian Keßler
|
// @author Maximilian Keßler
|
||||||
|
@ -358,7 +358,7 @@ function injectCounter() {
|
||||||
games: otc.util.extractFloat( c1[3].innerText),
|
games: otc.util.extractFloat( c1[3].innerText),
|
||||||
wins: otc.util.extractFloat( c1[4].innerText.split("-")[0]),
|
wins: otc.util.extractFloat( c1[4].innerText.split("-")[0]),
|
||||||
defeats: otc.util.extractFloat( c1[4].innerText.split("-")[1]),
|
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),
|
goldGames: otc.util.extractFloat( c1[6].innerText),
|
||||||
goldWins: otc.util.extractFloat( c1[7].innerText.split("-")[0]),
|
goldWins: otc.util.extractFloat( c1[7].innerText.split("-")[0]),
|
||||||
goldDefeats: otc.util.extractFloat( c1[7].innerText.split("-")[1]),
|
goldDefeats: otc.util.extractFloat( c1[7].innerText.split("-")[1]),
|
||||||
|
|
Loading…
Reference in a new issue