183 submissions
I'm in the process of making a "comment management" module in FurAffiniTweaks, to make managing shouts and all that stuff muuch easier for other plugins to do, rather than having to select each comment element manually.
One thing you can do with it is sort comments with a function -- any function, specifically.
While this can be used to sort FurAffinity comments by date, descending like God (rhetorical) intended, when I say any function, I mean any function.
Therefore, terrible sorting ensues.
This right here is:
sort(comments, (c1, c2) => c1.user.displayName.length - c2.user.displayName.length)
Which basically means "For each comment, compare the length of the display name of the user that posted two of them, and then place one comment ahead or behind of the other based on if the resulting difference is negative or positive.", or "SORT COMMENTS BY ASCENDING DISPLAY NAME LENGTH, PLEASE."
Any contributions welcome! The GitHub repository can be found at MeowcaTheoRange/FurAffiniTweaks.
One thing you can do with it is sort comments with a function -- any function, specifically.
While this can be used to sort FurAffinity comments by date, descending like God (rhetorical) intended, when I say any function, I mean any function.
Therefore, terrible sorting ensues.
This right here is:
sort(comments, (c1, c2) => c1.user.displayName.length - c2.user.displayName.length)
Which basically means "For each comment, compare the length of the display name of the user that posted two of them, and then place one comment ahead or behind of the other based on if the resulting difference is negative or positive.", or "SORT COMMENTS BY ASCENDING DISPLAY NAME LENGTH, PLEASE."
Any contributions welcome! The GitHub repository can be found at MeowcaTheoRange/FurAffiniTweaks.
Category Screenshots / Miscellaneous
Species Unspecified / Any
Size 796 x 1224px
File Size 145.4 kB
FA+

Comments