Vanilla Javascript click on LI that contains a certain text
<p>I have some code that scans a webpage and outputs a special string, such as: <code>multus –a –um</code> And on the page it's executed on there are many <code>&lt;LI&gt;</code> elements containing texts like <code>multus –a –um</code> but, they are all different. I need a way to search the page for an element containing a certain string and then change some CSS on the <code>&lt;LI&gt;</code> element.</p>

<p>Example:</p>

<ol>
<li>I run my code and get: <code>multus –a –um</code></li>
<li>Search page for an <code>&lt;LI&gt;</code> element containing <code>multus –a –um</code></li>
<li>Change background of element to <code>#17af50</code></li>
</ol>

<p>It need to be a function too, so I can run it easily </p>