Skip to content

Instantly share code, notes, and snippets.

@ptcc
Created April 5, 2022 09:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ptcc/a75a82d47e46cebe79c93e1e2468635d to your computer and use it in GitHub Desktop.
Save ptcc/a75a82d47e46cebe79c93e1e2468635d to your computer and use it in GitHub Desktop.
const peopleFilters = document.querySelector('#ghx-quick-filters ul:nth-of-type(2)');
const child = Array.from(peopleFilters.children);
const reject=(...elements)=>item=>!elements.includes(item.innerText);
peopleFilters.replaceChildren(...child.filter(reject("Only My Issues","Recently Updated")).sort(()=>Math.random()-0.5));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment