Feature request - average updates
![]() ![]() |
Hi - could you add a new/alternate tooltip to the updated text string that shows the average number of days between updates. I can't remember how many times I've started reading a long story, only to realise that the update frequency is very slow. Being able to easily see that the story was updated yesterday/last week/last month/etc and also the average time between updates (published - last update / chapters) would give an indication if the story has been abandoned - eg if the average time between chapters is 15 days, but it was last updated 6 months ago it is highly likely that the story has been abandoned. Obviously this is not relevant for stories that have been marked as complete. Thanks |
![]() ![]() |
I'm afraid not, Fanfiction does not provide this information. |
![]() ![]() |
I did a bit of digging and have a very basic/crude proof of concept. What's the best way to send this to you for consideration? |
![]() ![]() |
Feel free to just post the source on these forums, or a PM if you prefer, either will work fine. |
![]() ![]() |
OK - I'll post the snippets that I've come up with. I've added the following block that calculates the average number of days between updates. var dtPublish = new Date(((p[3] < 50)?'20':'19')+p[3], (p[1]-1),p[2],today.getHours(),today.getMinutes(),today.getSeconds()); var dtUpdate = new Date(((u[3] < 50)?'20':'19')+u[3], (u[1]-1),u[2],today.getHours(),today.getMinutes(),today.getSeconds()); var iTotDays = Math.round((dtUpdate - dtPublish)/(1000*60*60*24)); var iChapDays = Math.round(iTotDays/(story.chapters-1)); And to show this as a tooltip I made the following change: strUpdated = "<span style=\"color: "+color+";\"><abbr title=\"Average Update : "+iChapDays+" days\">"+updated+"</abbr></span>"; This appears to give the sort of thing I'm interested in, although I haven't tested that it works in all places as yet. Nor have I added any boolean options to allow choosing what to show. There are also corner cases where it would need work - eg single chapter stories, completed stories, etc |
![]() ![]() |
I'll add this asap. (Stupid of me, didn't even think of dividing the number number of days on line by the number of chapters). |


