Created
May 1, 2019 22:38
-
-
Save salsalabs/0f85d9fefd1654c0a04f4a1e7987a172 to your computer and use it in GitHub Desktop.
Hide federal, country and municipal legislators in the legislative_lookup.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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