Created
August 1, 2018 22:19
-
-
Save vjk2005/df4020d0d15dc6041819f7ebb83a9867 to your computer and use it in GitHub Desktop.
Cleans up DOM by removing elements with the specified class name
This file contains 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
[...document.getElementsByClassName('class-name-goes-here')].map(el => el.parentNode.removeChild(el)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment