I have a list that every bock is constructed like below. Some of the blocks have a <span class="protected-icon"></span>
.
I would like to make a really simple greasemonkey plugin that removes that block.
So, my question is using Javascript how can I remove/hide the entire block
( <div data-item-type="user" class="js-stream-item stream-item"></div>
that contains it?
<div data-item-type="user" class="js-stream-item stream-item">
<div class="user-content-rest">
<span class="user-name">
<span class="protected-icon"></span>
</span>
</div>
</div>