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!
((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
should now be
Hope this helps anyone who's having this issue, and thanks so much to OP for writing the script!