Skip to content

Instantly share code, notes, and snippets.

@salsalabs
Created May 1, 2019 22:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save salsalabs/0f85d9fefd1654c0a04f4a1e7987a172 to your computer and use it in GitHub Desktop.
Save salsalabs/0f85d9fefd1654c0a04f4a1e7987a172 to your computer and use it in GitHub Desktop.
Hide federal, country and municipal legislators in the legislative_lookup.
<script type="text/javascript">
document.addEventListener('DOMContentLoaded', function() {
if (window.location.href.indexOf('getLocal4.jsp') != -1) {
var a = Array.from(document.querySelectorAll('div[id^=officials]'))
a = a.filter(function(e) {
return /officials_S/.test(e.id) ? false : true;
})
a.forEach(function(e) {
e.style.display = 'none';
//Hide two trailing <br> tags.
e.nextSibling.style.display = 'none';
e.nextSibling.nextSibling.display = 'none';
});
}
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment