Skip to content

Instantly share code, notes, and snippets.

@mertvetsky
Forked from anonymous/no-shapito.js
Created August 18, 2016 11:09
Show Gist options
  • Save mertvetsky/76bc1d15ae2d9ce3836312e380021f22 to your computer and use it in GitHub Desktop.
Save mertvetsky/76bc1d15ae2d9ce3836312e380021f22 to your computer and use it in GitHub Desktop.
Array.from(document.querySelectorAll('.feed_row a')).forEach(function(el){
if(el.href.match(/https?%3A%2F%2Fmeduza.io%2Fshapito%2F/)){
var parent = el.parentElement;
while(Array.from(parent.classList).indexOf('feed_row') == -1) parent = parent.parentElement;
parent.style.display = 'none';
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment