Skip to content

Instantly share code, notes, and snippets.

@aashutoshrathi
Created July 9, 2020 14:10
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aashutoshrathi/0926525973f8debb7e3d0254b048f18f to your computer and use it in GitHub Desktop.
Save aashutoshrathi/0926525973f8debb7e3d0254b048f18f to your computer and use it in GitHub Desktop.
Clears the new x/x repository cards from GitHub Feed
x = document.querySelectorAll('div.f4.lh-condensed.text-bold.text-gray-dark');
for(let i=0; i<x.length; i++) {
const [a, b] = x[i].children[0].innerText.split('/');
if(a === b)
x[i].parentElement.parentElement.remove();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment