Skip to content

An unofficial re-implementation of Canvas's "sort by likes" feature in discussion posts.

Notifications You must be signed in to change notification settings

shrayus-masanam/sort-by-likes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

Canvas #SortByLikes

An unofficial re-implementation of Canvas's "sort by likes" feature in discussion posts.




Sorting by likes allows comments to be shown in an order that is more relevant to readers, where the most liked comments on a discussion thread are shown at the top. This feature used to be present on the Canvas website and mobile app, but was removed during the redesign of discussion threads.

Canvas #SortByLikes (CSBL) returns this functionality to the website through a browser extension by fetching all comments to a discussion post, sorting the comments by like-count, then intercepting further network requests and serving a custom response based on pagination info, where the most-liked comments are shown in descending order.

CSBL allows granular control over which courses and which discussions should be automatically sorted by likes. Once a Canvas course is enabled in the extension’s menu, all discussions in that course will automatically be sorted by likes unless individually opted out. This ensures that other courses aren’t affected by the feature (unless opted in), and by default all discussions in opted-in courses are sorted by likes (unless opted out).

Please note that depending on how many users your LMS has, this could put a heavy load on the backend server.

About

An unofficial re-implementation of Canvas's "sort by likes" feature in discussion posts.

Resources

Stars

Watchers

Forks