Displaying number of comments in torrents with UserScripts
#11
very nice work!
Reply
#12
:-)
Possible extension. If the last comment on a torrent is within the last 24*n hours, display in another colour, to indicate there is a 'new comment'. Level: Tricky (for me) :-)
Reply
#13
(Aug 25, 2014, 02:33 am)SectorVector Wrote: :-)
Possible extension. If the last comment on a torrent is within the last 24*n hours, display in another colour, to indicate there is a 'new comment'. Level: Tricky (for me) :-)

That's a great idea, hope you can make it Big Grin
Reply
#14
First Cut. :-)

Config:
Set variable 'itsme' to your TPB user name, in the script, so that your own comments are not interpreted as the most recent.
Change the variable DST to 0, when Daylight Savings ends.

If you have the earlier code, copy-paste this over it and save file.

Color code: (Legend appears at the bottom of TPB page)
red - < 1 hr
orange - < 1 day
blue - < 3 days
grey - < 1 week
plain text - > 1 week.

Snaps:
https://bayimg.com/mAaJMAAgH
https://bayimg.com/nAaJBaAGh

code

Thank you NokTham for your valuable inputs and in helping to test the code. :-)
Reply
#15
* NIK is impressed
Reply
#16
Thank you ! :-)
Reply
#17
haha, Sector did an awesome job in this script, It's simple and effective Big Grin

Thank you Sector for all the work you have put into making this Smile
Reply
#18
Excellent idea and excellent job at making it work. Thanks
Reply
#19
So, I guess I can mark this as "Solved", everything seems to work nice.

Once again, thx to SectorVector, for all the work and effort in making such script. Big Grin
Reply
#20
Thank you too NokTham :-)
I learnt something too in the process.
Suggestions for improvements / bug reports are always welcome.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Next Palindrome number Avantika_Sharmaa24 1 6,050 Mar 15, 2023, 21:19 pm
Last Post: SectorVector
  TPB user comments add-on. SectorVector 0 13,736 Feb 09, 2014, 07:23 am
Last Post: SectorVector



Users browsing this thread: 1 Guest(s)