-
-
Notifications
You must be signed in to change notification settings - Fork 165
GitHub sort content
Rob Garrison edited this page Oct 24, 2022
·
49 revisions
A userscript that makes some lists & markdown tables sortable
- This userscript makes the following content sortable; links to some example pages (install the userscript first!):
- Markdown tables - on
https://github.com/(:user|:org)/:repo
andhttps://github.com/(:user|:org)/:repo/wiki
pages - Repo files table -
https://github.com/(:user|:org)/:repo
(sort content, message or age columns) - Feed Activity -
https://github.com
(recent & all) - Main Sidebar -
https://github.com
(Repositories & Your teams) - Pinned Repos -
https://github.com/:org
&https://github.com/:user
- Organization repos -
https://github.com/:org
(inline with search input) - Organization people -
https://github.com/orgs/:org/people
(inline with search input) - Organization outside collaborators (own orgs) -
https://github.com/orgs/:org/outside-collaborators
- Organization teams (own orgs) -
https://github.com/orgs/:org/teams
- Organization team repos -
https://github.com/orgs/:org/teams/:team/repositories
- Organization team members -
https://github.com/orgs/:org/teams/:team/members
- Organization projects -
https://github.com/:org/projects
- User repos -
https://github.com/:user?tab=repositories
. - User stars -
https://github.com/:user?tab=stars
. - User Followers -
https://github.com/:user?tab=followers
. - User Following -
https://github.com/:user?tab=following
. - Watching -
https://github.com/watching
. - Subscriptions -
https://github.com/notifications/subscriptions
. - Repo stargazers -
https://github.com/:user/:repo/stargazers
. - Repo watchers -
https://github.com/:user/:repo/watchers
.
- Markdown tables - on
- The script uses tinysort:
- Therefore, only a ascending or descending sort of the list can be applied.
- The only way to reset the sort is to reload the page.
- Sorting of dates will work if all dates are within the same year; dates that span years will not sort properly - this is a limitation of the tinysort plugin.
- The sort only applies to the elements on the current page; lists that continue on to other pages are not included.
- Click this link to install from GitHub; or, install from GreasyFork or OpenUserJS.
* NOTES *
- In v3.0+, the
https://github.com/:user?tab=stars
andhttps://github.com/watching
pages sort the content using the repository name, and not the owner of the repo. - Columns containing dates will not sort as expected because the tinysort library does not support it natively.
Markdown table
Organization repos/people (only the current page)
Following/You Know
- Update dependencies.
- Update mutation script.
- Update mutation script.
- Fix JS error.
- Updated tinysort.
- Update repo files - GitHub changed the table into divs.
- Removed
https://github.com/:user/followers
,https://github.com/:user/followers/you_know
,https://github.com/:user/following
andhttps://github.com/:user/following/you_know
because paths were completely removed - Added
https://github.com/notifications/subscriptions
. - Switched to use
aria-sort
attribute vs class name of sort direction.
- Update selectors. Fixes issue #104.
- Prevent adding duplicate thead.
- Rewrite script to ease updating of constantly changing class names & markup; thanks GitHub!
- Sort indicators have all been moved to the left of the sortable block; previously positioned to the right, and adjusted to make room for admin buttons.
- Add support to team members, team repos, repos & project pages.
- Changed the
https://github.com/:user?tab=stars
andhttps://github.com/watching
pages to sort the content using the repository name, and not the owner of the repo. - Lots of code cleanup.
- Fixes issue #99.
- Update header selector.
- Update GitHub icon.
- Update mutation script.
- Update mutation script.
- Add support for gist.github.com. See PR #61; thanks @AviSynthPlus!
- Complete rewrite for new layout.
- Update mutation script.
- Update mutation script.
- Code cleanup.
- Fix user/org sorting.
- Update mutation script url.
- Update GM4 polyfill.
- Add GM4 polyfill & update assets.
- Add sort to Your Teams.
- Fix sort container selectors.
- Update mutation script url.
- Fix linting issues.
- Prevent duplicate header on browser back (Chrome).
- Make repo file list sortable. Fixes issue #24.
- Change license to MIT.
- Fix linting.
- Remove extra css definitiion.
- Clean up "closest" function.
- Update to match layout changes.
- Remove unnecessary log.
- Clean up linting issues.
- Add sort to user navigation bar (Overview, Repositories, Stars, Followers & Following).
- Beautified.
- Add sort to watching list.
- Clean up code & Fix sorting issue on main page repo boxes.
- Include background no-repeat with sorted arrows. Fixes issue #5.
- Update user repo tab class name. See issue #5.
- Prevent JS error when clicking on the TOC userscript arrows.
- Add following/follower list sort.
- Add missing !important flag & screenshot.
- Initial commit.