Created
April 5, 2022 09:41
-
-
Save ptcc/a75a82d47e46cebe79c93e1e2468635d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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