Skip to content

Instantly share code, notes, and snippets.

@Cside
Created March 4, 2011 13:26
Show Gist options
  • Save Cside/854604 to your computer and use it in GitHub Desktop.
Save Cside/854604 to your computer and use it in GitHub Desktop.
はてブのentrylistページで、カテゴリでフィルタリング
Array.prototype.slice.apply(document.querySelectorAll('ul.hotentry > li')).forEach(function(s) { if(s.querySelector('li.category').innerText !== 'コンピュータ・IT' ) { s.style.display = 'none'; } });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment