SuprBay: The PirateBay Forum

Full Version: Displaying number of comments in torrents with UserScripts
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3
very nice work!
:-)
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) :-)
(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
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. :-)
* NIK is impressed
Thank you ! :-)
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
Excellent idea and excellent job at making it work. Thanks
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
Thank you too NokTham :-)
I learnt something too in the process.
Suggestions for improvements / bug reports are always welcome.
Pages: 1 2 3