How to hide an element, based on its text, with JavaScript?
<p>I'm a beginner developer. I'm trying to hide a div that is dynamically added to the page by a 3rd party JavaScript for aesthetic purposes.</p>

<p>The problem is that the div has no <code>id</code> attribute; is this even possible? Do divs have any inherent attributes based on the order in which they load? Or is there any way to search for a string of text and hide the element?</p>

<p>For example, removing <code>&lt;div&gt;happy New year&lt;/div&gt;</code> based on its text <code>happy New year</code>.</p>
