Skip to content

Instantly share code, notes, and snippets.

@robotlolita
Created October 14, 2018 13:24
Show Gist options
  • Save robotlolita/24a27dc8b0ad01fe0165f2fc87d6a67d to your computer and use it in GitHub Desktop.
Save robotlolita/24a27dc8b0ad01fe0165f2fc87d6a67d to your computer and use it in GitHub Desktop.

Unclutter calendar:

javascript:void (() => { Array.from(document.querySelectorAll('.calendar .item')).filter(x => !/\b(green|yellow)\b/.test(x.className)).forEach(x => x.parentNode.removeChild(x)); Array.from(document.querySelectorAll('.browse__content .section')).filter(x => { const a = x.querySelector('h2'); return x.textContent.trim() === a.textContent.trim() }).forEach(x => x.parentNode.removeChild(x)) })()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment