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.

< Feedback on Greasy Fork - Analyze from posted scripts

Question/comment

parseInt(obj.total_installs, 10) is incorrect.

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

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

hacker09Author
§
Posted: 2024.07.14.
Edited: 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.

hacker09Author
§
Posted: 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.

Post reply

Sign in to post a reply.