Hiding inactive repositories from main listing
Konstantin Ryabitsev
konstantin at linuxfoundation.org
Mon Jun 4 23:07:57 CEST 2018
Hello:
I wanted to share with you a way to hide all inactive repositories (2+
years of inactivity) from the main listing using javascript. E.g. go to
https://git.kernel.org and paste this into the URL bar:
javascript:for(n of document.querySelectorAll('span.age-years'))n.parentElement.parentElement.remove()
I'm pondering adding a small link in the custom header:
[hide inactive] (with the snippet above)
the link is then replaced with [show inactive] which simply reloads the
page.
I wanted to check here first to see if anyone had improvement
suggestions or other comments before I try it out live.
Best,
-K
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: not available
URL: <http://lists.zx2c4.com/pipermail/cgit/attachments/20180604/72ed7206/attachment.asc>
More information about the CGit
mailing list