From: konstantin at linuxfoundation.org (Konstantin Ryabitsev)
Subject: Hiding inactive repositories from main listing
Date: Mon, 4 Jun 2018 17:07:57 -0400 [thread overview]
Message-ID: <20180604210757.GB18961@chatter> (raw)
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>
reply other threads:[~2018-06-04 21:07 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180604210757.GB18961@chatter \
--to=cgit@lists.zx2c4.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).