Skip to content

Instantly share code, notes, and snippets.

@DavidArsene
Created April 29, 2026 08:19
Show Gist options
  • Select an option

  • Save DavidArsene/c62e80232c98786b1005da5f0d02e580 to your computer and use it in GitHub Desktop.

Select an option

Save DavidArsene/c62e80232c98786b1005da5f0d02e580 to your computer and use it in GitHub Desktop.
nixpkgs filter userscript
// ==UserScript==
// @name nixpkgs filter
// @version 2026-03-24
// @description make commit history readable
// @author DavidArsene
// @match https://github.com/NixOS/nixpkgs/commits/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=github.com
// @grant none
// @run-at document-idle
// ==/UserScript==
const filter = [
" -> ",
"python3"
]
.map(sel => `li[aria-label*="${sel}"]`)
.join(", ");
for (const el in document.querySelectorAll(filter)) {
el.remove()
}
// TODO: mutation observer for spa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment