AO3: Quality score (Adjusted Kudos/Hits ratio)

Uses the kudos/hits ratio, number of chapters, and statistical evaluation to score and sort AO3 works.

< 脚本AO3: Quality score (Adjusted Kudos/Hits ratio)的反馈

评价:好评 - 脚本运行良好

§
发表于:2023-08-01
编辑于:2023-08-01

((Bug fix))

I really love this script and have been using it for a while, it really improves the AO3 browsing experience! Recently I started noticing a bug where some scores were really wonky, like in the thousands/ten-thousands. I did a bit of poking around, it seems like an issue with parseInt not dealing with the commas in the strings correctly (maybe javascript had an update that messed it up or something idk). Anyway the fix is really simple: just add .replace(',', '') after the .text() bit on lines 132 and 133!

Basically what used to be

var hits_count = parseInt(hits_value.text());
var kudos_count = parseInt(kudos_value.text());

should now be

var hits_count = parseInt(hits_value.text().replace(',', ''));
var kudos_count = parseInt(kudos_value.text().replace(',', ''));

Hope this helps anyone who's having this issue, and thanks so much to OP for writing the script!

§
发表于:2023-08-01

THANK YOU!

Seriously, I was so lost without this!

发表回复

登录以发表回复。