AO3: Quality score (Adjusted Kudos/Hits ratio)

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

< Feedback on AO3: Quality score (Adjusted Kudos/Hits ratio)

Değerlendirme: İyi - script çalışıyor

§
Gönderildi: 01.08.2023
Düzenlendi: 01.08.2023

((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!

§
Gönderildi: 01.08.2023

THANK YOU!

Seriously, I was so lost without this!

Cevap paylaş

Yanıt göndermek için oturum açın.