Greasy Fork - Analyze from posted scripts

Shows the total amount for each rating, total/daily installs, and scripts posted on any user profile and search pages.

< 脚本Greasy Fork - Analyze from posted scripts的反馈

提问/评论

§
发表于:2024-07-14

parseInt(obj.total_installs, 10) is incorrect.

parseInt(..., 10) for "1,234" will become 1

please fix for all parseInt(..., 10)

hacker09作者
§
发表于:2024-07-14
编辑于:2024-07-14

That's true, but after testing the code without parseInt https://pastebin.com/raw/iXWkQcSv I haven't seen any change.
My profile and yours still show a total of more than a thousand, I saw that I don't even need to use parseInt at all anywhere, but using it or not didn't change anything and all numbers remained the same, so I don't see a reason to remove parseInt, although it's needless.

Do you see a stats diff between the current version and the pastebin version?

obj.total_installs is never a string anyway, so since there isn't a "," anywhere, it calculates correctly using parseInt, or without using it.

hacker09作者
§
发表于:2024-07-14

I could remove it just because it's needless and apparently the stats load 1 sec faster when I don't use parseInt.

发表回复

登录以发表回复。