PeratX / RARBGHelper

Powerful Toolbox for RARBG.
Apache License 2.0
52 stars 6 forks source link

Rarbg Ratings #14

Open ezpana opened 2 years ago

ezpana commented 2 years ago

How do I change Rarbg ratings back to 2 decimal places on this newest version? On previous version (1.7.0) it was simple (only adding d in line 88 -> (\d.\dd)\d/), but now (version 1.7.1 or 1.7.2) what do I add?

hedcet commented 2 years ago

the rating shown in the version 1.7.0 is extracted from one of the hidden elements (.current-rating) https://github.com/PeratX/RARBGHelper/blob/f0ceb30d76b1b5531ebac197743f29485f706df7/rarbg-helper.user.js#L86

but in 1.7.2 it takes from the proper element with casted votes count https://github.com/PeratX/RARBGHelper/blob/master/rarbg-helper.user.js#L128

Screenshot 2022-05-22 at 9 30 40 PM

& the casted votes count is very useful

Screenshot 2022-05-22 at 9 43 59 PM
ezpana commented 2 years ago

OK and can it be expanded it into 2 decimal places, for example on Everything.Everywhere.All.At.Once so that it would show 4.07/5 (281 votes cast)?