-
-
Notifications
You must be signed in to change notification settings - Fork 166
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.